安装: cnpm i vue-loader vue-template-compiler -D后报错如下:
vue-loader was used without the corresponding plugin
解决方案:

//引入插件
const VueLoaderPlugin = require('vue-loader/lib/plugin');
module.exports = {
    entry: path.join(__dirname, './src/main.js'),
    output: {
        path: path.join(__dirname, './dist'),
        filename: 'bundle.js'//指定输出文件的名称
    },
    plugins: [
        new VueLoaderPlugin()
    ]
}

相关文章:

  • 2021-11-03
  • 2021-06-02
  • 2022-01-21
  • 2021-05-22
  • 2022-12-23
  • 2021-11-26
猜你喜欢
  • 2022-12-23
  • 2021-09-10
  • 2021-05-23
  • 2021-07-14
  • 2022-03-08
相关资源
相似解决方案