Skip to content

Commit bb496c0

Browse files
committed
fix($core): Loss of CSS after build (fix vuejs#2350)
1 parent 924281e commit bb496c0

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)