Skip to content

Commit 7e29900

Browse files
authored
fix($core): style loss under build for package that specifies sideEffects: false (fix #2350) (#2471)
1 parent 823c1df commit 7e29900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vuepress/core/lib/node/webpack/createBaseConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ module.exports = function createBaseConfig (context, isServer) {
230230
})
231231

232232
function createCSSRule (lang, test, loader, options) {
233-
const baseRule = config.module.rule(lang).test(test)
233+
const baseRule = config.module.rule(lang).test(test).sideEffects(true)
234234
const modulesRule = baseRule.oneOf('modules').resourceQuery(/module/)
235235
const normalRule = baseRule.oneOf('normal')
236236

0 commit comments

Comments
 (0)