vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
默认,webpack无法打包.vue文件,需要安装 相关的loader:
cnpm i vue-loader vue-template-compiler -D
提示以下错误信息:
Module Error (from ./node_modules/_vue-loader@15.7.2@vue-loader/lib/index.js):
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
解决办法:
参考博客:https://blog.csdn.net/cominglately/article/details/80555210
完美解决