Open StarpTech opened 4 years ago
Hi!
Thanks for reporting. This seems to be an upstream issue with purgecss-webpack-plugin
:
https://github.com/FullHuman/purgecss-webpack-plugin/issues/65
I'll leave this issue open so we can track the progress there and update this plugin when it's solved.
@lucleray I don't know if it's related to
next-compose-plugins
but when I use this plugin the hash of the generatedcommon
chunks is wrong.Reproduce
pt-xl-4
in exact one component. PurgeCss will include it because it's used. The hash of the file is something like.next/static/chunks/commons.d4d0b807.chunk.css
.pt-xl-4
in the component and rebuild. You will see the hash hasn't changed but the class was removed by PurgeCss.That's an indication that hash was generated on the content before purgecss proceed it.
We removed it completely from the build because it was the cause of several production cache issues.