FullHuman / purgecss

Remove unused CSS
https://purgecss.com
MIT License
7.8k stars 248 forks source link

Angular CLI support for modern builders #1265

Open robmanganelly opened 3 months ago

robmanganelly commented 3 months ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

It would be fantastic to have a plugin for Angular, similar to those available for other frameworks (e.g., Next.js, Vue). If a plugin isn't possible, it would be great to have a standard configuration that could be added to angular.json (or project.json in Nx monorepos) to ensure our PostCSS hook is correctly executed after every production build.

Describe alternatives you've considered

Honestly, for my organization, using default builders is a dealbreaker, so we don't even attempt to go down that rabbit hole.

There was a similar request that was closed years ago, but it seems the issue remains unresolved. Any comments or updates on this would be appreciated to help set our expectations.

Thanks for the great work!

robmanganelly commented 3 months ago

After further research I found this article

https://onexception.dev/news/1285233/angular-17-purge-css-with-postcss-plugin

I will test in one of my projects and will provide feedback 🤞 nope, it did not work.