报错info
WARNING in configuration
The ‘mode‘ option has not been set. Set ‘mode‘ option to ‘development‘ or ‘production‘ to enable defaults for this environment.
webpack 4.x.x 升级
解决方法
webpack hello.js -o bundle.hello.js --mode=production
报错info
WARNING in configuration
The ‘mode‘ option has not been set. Set ‘mode‘ option to ‘development‘ or ‘production‘ to enable defaults for this environment.
webpack 4.x.x 升级
解决方法
webpack hello.js -o bundle.hello.js --mode=production
转载于:https://www.cnblogs.com/branchTree/p/9657757.html