babel7.x和webpack4.x配置vue项目的方法步骤(2)

//两个方式都可以的,随便用一个 const VueLoaderPlugin = require('vue-loader/lib/plugin'); // 或者 const { VueLoaderPlugin } = require('vue-loader'); plugins: [ // make sure to include the plugin for the magic new VueLoaderPlugin() ]

详细 https://github.com/vuejs/vue-loader/issues/1238

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/c7ce9a2ee524ad1455d68edfc03c8a6b.html