關于webpack配置問題
當你運行webpack4.0以上的版本時,按視頻里配置文件,你會發(fā)現(xiàn):
ERROR in ./src/app.vue
Module Error (from ./node_modules/vue-loader/lib/index.js):
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
說缺少VueLoaderPlugin。
如果遇到問題的童鞋,可以參照一下網(wǎng)址:
https://blog.csdn.net/sunhaobo1996/article/details/80431737
https://github.com/vuejs/vue-loader/issues/1238
2019-03-05
還有一個問題:為什么要寫成"build": "webpack --config webpack.config.js" ?而不是
??? "build":"webpack --mode production"呢?前者會報錯,兩者有什么區(qū)別嗎?
2019-03-05
用到了,謝謝
2019-03-01
搞了兩天才搞清楚,童鞋們要小心啊!仔細看看會很有參考價值!