1

I have an Angular application with a lot of CSS. Most of this is written at the component level.

I know that Angular writes the CSS inside the output bundle.

Is it possible to remove unused CSS in this JS file?

After I try purgecss I found that it works only on CSS files (style.scss), but I was not able to make it work on "CSS in JS" files.

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Jon Sud
  • 10,211
  • 17
  • 76
  • 174

0 Answers0