用webpack自动构建项目的时候发现报错,找到了解决办法,顺便想记录一下
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
找了一下问题所在,,发现:
Vue-loader在15.*之后的版本都是 vue-loader的使用都是需要伴生VueLoaderPlugin的,
参考官方文档 https://vue-loader.vuejs.org/migrating.html#a-plugin-is-now-required