Skip to content

Commit

Permalink
[#150] fix: override of 'build.cssCodeSplit' will not take effect if …
Browse files Browse the repository at this point in the history
…`config.build.cssCodeSplit` is `undefined` (#148)
  • Loading branch information
voldikss committed Sep 27, 2024
1 parent 6c30640 commit b681b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function cssInjectedByJsPlugin({
}

if (relativeCSSInjection == true) {
if (config.build.cssCodeSplit == false) {
if (!config.build.cssCodeSplit) {
config.build.cssCodeSplit = true;
warnLog(
`[vite-plugin-css-injected-by-js] Override of 'build.cssCodeSplit' option to true, it must be true when 'relativeCSSInjection' is enabled.`
Expand Down

0 comments on commit b681b37

Please sign in to comment.