报错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

 

版权声明:本文为branchTree原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/branchTree/p/9657757.html