webpack vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin

Vue-loader在15.*之后的版本都是 vue-loader的使用都是需要伴随着VueLoaderPlugin的
因此要在webpack.config.js中加入pluginsHtmlWebpackPlugin的用法一样

plugins: [
        new HtmlWebpackPlugin({
            template: './src/index.html'
        }),
        new VueLoaderPlugin()
    ]

Html解析插件链接
https://www.jianshu.com/p/96f86895b0a3

你可能感兴趣的:(webpack vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin)