Vue.js 使用自定义网页包加载程序预处理Vue组件
我有一个Vue组件,我想用一个自定义的网页加载器替换一些文本。我的网页包配置:Vue.js 使用自定义网页包加载程序预处理Vue组件,vue.js,webpack,Vue.js,Webpack,我有一个Vue组件,我想用一个自定义的网页加载器替换一些文本。我的网页包配置: { test: /\.vue$/, use: ["custom-loader"] } 问题是我得到了以下错误: Error: [VueLoaderPlugin Error] No matching use for vue-loader is found. Make sure the rule matching .vue files include vue-loader in it
{
test: /\.vue$/,
use: ["custom-loader"]
}
问题是我得到了以下错误:
Error: [VueLoaderPlugin Error] No matching use for vue-loader is found.
Make sure the rule matching .vue files include vue-loader in its use.
但是如果我将vue加载程序
添加到use
数组中,它仍然不起作用,自定义加载程序不会捕获.vue
文件
有什么解决办法吗