用webpack編譯.vue文件時報錯
webpack vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin
解決方法
const VueLoaderPlugin = require('vue-loader/lib/plugin'); //加這行
module.exports = {
entry:
output: {
},
//加plugins
plugins: [
new VueLoaderPlugin()
],
module : {
}
}