How does minChunks in CommonsChunkPlugin affect custom CSS style rendering?
React CSS style is rendering later than custom CSS style which depends on in some way minChunks
.
new webpack.optimize.CommonsChunkPlugin({
name: "common",
minChunks: function(module, count) {
return !couldThisGoToCommonBundle(module) && count >= 5;
}
}),
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
chunks: Object.keys(entryPoints).concat('common'),
minChunks: function(module, count) {
return couldThisGoToCommonBundle(module) && count >= 10;
}
})
When I change the counter> = 5 in the provider, the custom styling is not distorted.
+3
source to share
No one has answered this question yet
Check out similar questions: