netguru / create-react-app

Create React apps with no build configuration.
MIT License
14 stars 6 forks source link

Bundle from all chunks when using code splitting #48

Closed jedrzejiwanicki closed 6 years ago

jedrzejiwanicki commented 6 years ago

Is this a bug report?

No

Please include a flag allChunks in ExtractTextPlugin settings.

This is because async bundles still use style loader. We want to be able to create css from all existing chunks.

Suggested solution: allChunks: process.env.EXTRACT_STYLE_FROM_ALL_CHUNKS === 'true'