最后打包的時候報錯
WARNING in configuration The 'mode' option has not been set. Set 'mode' option to 'development' or 'production' to enable defaults for this environment. 請問這是什么錯誤?
WARNING in configuration The 'mode' option has not been set. Set 'mode' option to 'development' or 'production' to enable defaults for this environment. 請問這是什么錯誤?
2018-02-27
舉報
2018-03-04
我是把build,改成這個樣子就沒有警告了。
"build": "cross-env NODE_ENV=production --config webpack.config.js webpack --mode production"
https://www.jianshu.com/p/3a13f1b37300這個網(wǎng)址上面有詳細解釋。
2018-03-01
這是警告,告訴你webpack 4.0.0的一些新特性