React CSS style is rendering later than custom CSS style, which is somehow dependent on 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 count >= 5 in vendor, the custom style is not distorted.