提交 b98183ff 编写于 作者: Q qiang

fix: remove warning about extract-css-loader

上级 84578b20
......@@ -91,6 +91,17 @@ module.exports = function chainWebpack (platformOptions, vueOptions, api) {
}
return options
})
const platformExcludes = ['app-plus', 'h5', 'mp-360']
const platform = process.env.UNI_PLATFORM
if (!platformExcludes.includes(platform)) {
// remove warning https://github.com/vuejs/vue-loader/issues/1742
langRule.oneOf(type)
.use('extract-css-loader')
.tap(options => {
options.esModule = false
return options
})
}
}
langRule.oneOf(type)
.use('uniapp-preprocss')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册