chore: optimize the efficiency of theme switching; 🌟

This commit is contained in:
iczer 2020-07-22 20:50:46 +08:00
parent a62c293e42
commit 272f740597

View File

@ -16,6 +16,7 @@ module.exports = {
new ThemeColorReplacer({ new ThemeColorReplacer({
fileName: 'css/theme-colors-[contenthash:8].css', fileName: 'css/theme-colors-[contenthash:8].css',
matchColors: getThemeColors(), matchColors: getThemeColors(),
injectCss: true,
resolveCss resolveCss
}) })
) )