【Webpack Getting Started】
Make sure you have a fresh version of Node.js installed.
If you are using npm scripts in your project, npm will try to look for webpack installation in your local modules for which this installation technique is useful.
也可像下面这样打包:
通常,会通过webpack.config来进行打包:
参考: