webpack4

webpack4 开发环境搭建

npm 初始化项目 yarn init 安装webpack依赖 yarn add webpack webpack-dev-server webpack-cli @webpack-cli/init --dev webpack 初始化 npx webpack-cli init ? Will your application have multiple bundles? Yes ? Type the names you want for your modules (entry files), separated by comma [example: app,vendor] app ? What is the location of "app"? [example: ./src/app] ./src/app ? Which folder will your generated bundles be in? [default: dist]: dist ? Will you be using ES2015?

浏览