安装完vue-loader和vue-template-compiler后,npm run dev 报错
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
查了官方文档: https://vue-loader.vuejs.org/migrating.html#a-plugin-is-now-required
是因为vue-loader,15的版本需要再添加plugin的配置,一个方法在webpack.config.js 添加如下配置, 一个是vue-loader 降级。