需要nodejs环境 安装webpack环境 npm install -g webpack webpack-dev-server webpack-cli 安装所需包 npm i 测试打包 npm run dev-build 上线打包 npm run build 启动开发服务 npm start