Closed behnammodi closed 3 years ago
Could you create a repo with a reproduction?
Yeah
@johanholmerin I sent you a invite to private repo
The CSS files need to be concatenated to a single file. Adding the following to your webpack config fixes the issue:
optimization: {
splitChunks: {
cacheGroups: {
styles: {
test: /\.css$/,
chunks: 'all',
enforce: true,
}
}
}
}
I've updated the documentation to include this.
Why closed this issue? I added cacheGroups
to config and it not works
Could you update https://github.com/behnammodi/style9-sample
I tested again, it works thanks 💪🏻, but i think we need ref to doc about CRA
If You have a component something like this:
And before that you created this style in another component:
New CSS file generated as duplicate