Skip to content

Commit

Permalink
fix($core): style loss under build for package that specifies `sideEf…
Browse files Browse the repository at this point in the history
…fects: false` (fix vuejs#2350) (vuejs#2471)
  • Loading branch information
nashaofu authored and Sergey Larionov committed Aug 19, 2020
1 parent 6933a7b commit 9c5c6c2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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')

Expand Down

0 comments on commit 9c5c6c2

Please sign in to comment.