You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 25, 2018. It is now read-only.
There are two entry points: src/split and src/not-split. Both pull in src/Child, but split does so via require.ensure for async code splitting. Child imports react-select's css.
The split css bundle for some reason is 3kb smaller than the non-split bundle. One example of a missing css rule is .Select-arrow-zone.
It's not clear to me why the two entries are being treated differently. Clearly at least some of the css selectors in the split bundle are being picked up, but not all of them.
src/Child.js is never included in filesToSearchhere
this is probably due to Child being in a different chunk (it's not in the main chunk's files)
the Child chunk is included in compilation.chunkshere, however since ExtractTextPlugin pulls all child chunks css into the main chunk, there are no assetsToPurify for it here - the only asset that chunk has is its .js
I'm not really sure how to work around this. I also can't figure out why the split css bundle includes any react-select styles at all, rather than dropping all of them since Child is never included in the files to search.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Minimal repro project: https://github.com/vitosamson/purifycss-webpack-repro.
There are two entry points:
src/split
andsrc/not-split
. Both pull insrc/Child
, butsplit
does so viarequire.ensure
for async code splitting.Child
importsreact-select
's css.The split css bundle for some reason is 3kb smaller than the non-split bundle. One example of a missing css rule is
.Select-arrow-zone
.It's not clear to me why the two entries are being treated differently. Clearly at least some of the css selectors in the split bundle are being picked up, but not all of them.
purifycss-webpack: 0.7.0
webpack: 2.6.1
node: 6.9.1
OS: OSX 10.11.1
The text was updated successfully, but these errors were encountered: