使用vuecli3.0配置,运行时不报错,打包时报错了
Building for production... ERROR Error: No loader specified
然后我加了那个配置
chainWebpack: (config) => {
config.module.rule('scss').use('sass-loader').tap(options =>
merge(options, {ncludePaths: [path.resolve(dirname, 'node_modules')],});
config.module.rule('vue').use('vue-loader')
.loader('vue-loader')
.tap(options => {
return options;
});
},
可还是报错了,是我少配置什么了吗?
楼主,你好!你的配置里确实有点小问题,
如有帮助,麻烦点击下采纳,谢谢~