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
Recover deleted code after purge #816
Comments
I implemented this feature a few weeks ago, but I don't think I updated the docs (or they need a seperate publish process). See #763.
@Ffloriel Do you need to do something seperate to update the documentation website? |
Also I havent 'upstreamed' those options to any of the tool plugins yet. For webpack it would have to be implemented here https://github.com/FullHuman/purgecss/tree/main/packages/purgecss-webpack-plugin |
Hi ! thank you for your anwser, i'll try to work on this next week ! happy to have this opportunity ! Don't know if it's a good think to close this issue by myself now, feel free to do it ! |
Is your feature request related to a problem? Please describe.
I'm curently trying to make some optimisation of LCP and purging seems to be a good solution. But i'll like to go deeper, a lot of my classes are modificator (BEM) and i don't need them before the document ready, so i could load all those classes later, in a splited css file loaded from javascript. I'm using webpack.
Describe the solution you'd like
A good solution for me could be to get the purged css in a separated file, i looked for something like this in documentation but doesn't find it. It could also allow to realy purge your dead code, i mean, purge your source code, not only the compiled one.
Describe alternatives you've considered
An other solution would be to create a new entry point, dedicated to this post-domReady load, but in many way it's a bit too hard for the time i have on this task. (dynamic name in javascrypt, BEM build as autonome component ...)
Additional context
First issue opened on a public repo ! be gentle ;-)
Also i have no knowlenge about creating plugins with webpack, but i'll be happy to contribute, any explaination/ressources would be nice !
ty for reading !
The text was updated successfully, but these errors were encountered: