MENU1、打包报错信息2、解决方案2.1、设置package.json2.2、设置webpack.config.js3、相关文章1、打包报错信息// WARNING in configuration// The mode option has not been set, webpack will fallback to production // for thisvalue. Set mode option to development or production to enable // defaults for each environment.// You can also set it to none to disable any default behavior. Learn more: // https://webpack.js.org/concepts/mode/2、解决方案2.1、设置package.jsonscripts:{// 开发环境dev:webpack --mode development,// 生产环境build:webpack --mode production,}2.2、设置webpack.config.jsmodule.exports{entry:./src/app.js,output:{path:path.resolve(__dirname,dist),filename:main.js},// 设置modemode:development}3、相关文章webpack4.0-解决webpack 报The ‘mode’ option has not been set, webpack will fallback to ‘production’ fo