Skip to content

Commit ab9ea7a

Browse files
authored
set allchunks: true for ExtractTextPlugin facebook#3908
1 parent dfbc71c commit ab9ea7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,10 @@ module.exports = {
312312
}),
313313
// Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`.
314314
new ExtractTextPlugin({
315+
// Turning this on because we want all css to be included in the main
316+
// css bundle when doing code splitting to avoid FOUC:
317+
// https://github.com/facebook/create-react-app/issues/2415
318+
allChunks: true,
315319
filename: cssFilename,
316320
}),
317321
// Generate a manifest file which contains a mapping of all asset filenames

0 commit comments

Comments
 (0)