问题:在webpack中使用vue报错:
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
解决:
我当前使用的Vue-loader版本是: “vue-loader”: “^15.7.0”,
官方在vue-loader15以上必须要配合插件使用
在webpack.config.js中配置:
const VueLoaderPlugin = require(‘vue-loader/lib/plugin’)
就能解决问题.
前提:安装命令
npm i vue-loader vue-template-compiler -D