美文网首页
webpack vue-loader was used with

webpack vue-loader was used with

作者: 飞雪踏鸿 | 来源:发表于2018-07-09 13:18 被阅读0次

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

    . 参考官方文档 https://vue-loader.vuejs.org/migrating.html#a-plugin-is-now-required

    . Vue-loader在15.*之后的版本都是 vue-loader的使用都是需要伴生 VueLoaderPlugin的,

    在webpack.config.js中加入

    const VueLoaderPlugin = require('vue-loader/lib/plugin');

    module.exports = {

        devtool: "sourcemap",

        entry: './js/entry.js', // 入口文件    output: {

            filename: 'bundle.js' // 打包出来的wenjian    },

        plugins: [

            // make sure to include the plugin for the magic        new VueLoaderPlugin()

        ],

        module : {

        ...

    }

    }

    参照:https://blog.csdn.net/cominglately/article/details/80555210

    相关文章

      网友评论

          本文标题:webpack vue-loader was used with

          本文链接:https://www.haomeiwen.com/subject/awxauftx.html