vue-loader was used without the corresponding plugin解決方法
原因:
Vue-loader在15.*之後的版本都是 vue-loader的使用都是需要伴生 VueLoaderPlugin的.
解決方法:
在webpack.config.js中加入
const VueLoaderPlugin = require('vue-loader/lib/plugin');
module.exports = {
......
plugins: [
// make sure to include the plugin for the magic
new VueLoaderPlugin()
],
}
作者:小二兒上酒
鏈接:https://www.jianshu.com/p/88cb1b27532a