首页 > 代码库 > Webpack Getting Started

Webpack Getting Started

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来进行打包:

  技术分享

参考:

1、https://webpack.js.org/guides/get-started/

2、https://webpack.js.org/guides/installation/

Webpack Getting Started