一、搭建Webpack环境
1. 项目目录
2. 初始化项目
npm init
3. 安装 Webpack 相关依赖包
npm install --save-dev webpack@4.44.1 webpack-cli@3.3.12 html-webpack-plugin@4.3.0
4. 修改 scripts
"scripts": { "start": "webpack" }
npm init
npm install --save-dev webpack@4.44.1 webpack-cli@3.3.12 html-webpack-plugin@4.3.0
"scripts": { "start": "webpack" }