About 90 percent of the css rules generated in styles-m.css and styles-l.css are unused.

How can I get rid of them? Is there a way to locate from which modules these styles are being generated?

1 Answer 1


Follow up here: https://www.codextblog.com/code-snippet/how-to-remove-unwanted-js-and-css-file-in-magento-2/

You may see alot of print.css files that'd need to be removed.

  • Thanks for the answer. but i do not want to remove the css files. I want to get rid of the unsused parts. Commented Sep 22, 2021 at 11:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.