-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
purgecss removing classes react/materialize css #190
Comments
Same here. It does erase all my react classes. (via webpack plugin) |
Same here |
I think the reason why none of the maintainers looked into this one was maily because you didn't provide any mcve for them to look at so here's an easy case:
Try to use purgecss with that snippet and you'll see quite easily how |
Any updates about this? |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
First time on github, pardon me if i missed something or have to add other informations.
Describe the bug
Im using purgecss in combination with React, Materialize CSS, webpack 4 and postcss. purgecss is removing needed css properties from the bundled css file.
To Reproduce
=> class "brand-logo" is not loaded
=> remove purgecss config from postcss.config.js and it works
Expected behavior
needed css classes get loaded
Additional context
Issue was not around before i added react. Seems like only a part of the needed css gets loaded.
Found this: https://www.purgecss.com/guides/react (but im not using create-react-app)
Also this one: #37
Looks like its an issue with the selector.
Sidenote: it appears that the whole color palette of materialize css is added to the bundle. Dunno why, but i guess, if its a bug, i should open another ticket.
Thanks and Cheers
Marco
The text was updated successfully, but these errors were encountered: