Skip to content

Commit 7b02d95

Browse files
authored
fix error in Storybook
1 parent 27da535 commit 7b02d95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-loader-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = (
2121
fileExtensions.add(extension)
2222
}
2323

24-
if (!isServer) {
24+
if (!isServer && config.optimization.splitChunks.cacheGroups) {
2525
config.optimization.splitChunks.cacheGroups.styles = {
2626
name: 'styles',
2727
test: new RegExp(`\\.+(${[...fileExtensions].join('|')})$`),

0 commit comments

Comments
 (0)