未验证 提交 7e299001 编写于 作者: N nashaofu 提交者: GitHub

fix($core): style loss under build for package that specifies `sideEffects:...

fix($core):  style loss under build  for package that specifies `sideEffects: false` (fix #2350) (#2471)
上级 823c1dfd
......@@ -230,7 +230,7 @@ module.exports = function createBaseConfig (context, isServer) {
})
function createCSSRule (lang, test, loader, options) {
const baseRule = config.module.rule(lang).test(test)
const baseRule = config.module.rule(lang).test(test).sideEffects(true)
const modulesRule = baseRule.oneOf('modules').resourceQuery(/module/)
const normalRule = baseRule.oneOf('normal')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册