解决:vue-loader was used without the corresponding plugin.

原因

webpack经常出现版本不兼容问题,vue-loader在15以前的版本打包时候会自动生成VueLoaderPlugin,但是现在需要手动去wepack.config.js文件中去加入,如下图所示
image

const VueLoaderPlugin = require('vue-loader/lib/plugin');
plugins: [
        // make sure to include the plugin for the magic
        new VueLoaderPlugin()
    ],

至此问题解决

不考虑业务场景,一味的争执技术的高下,都是耍流氓。
原文地址:https://www.cnblogs.com/leoych/p/15102384.html