Skip to content
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

Remove comments from the *built* CSS files #17035

Merged

Commits on Sep 26, 2023

  1. Remove comments from the *built* CSS files

    The old pre-processor used for CSS, and HTML, files leaves comments intact which unnecessarily contributes to the overall size of the *built* CSS files (note that the built JavaScript files don't include comments).
    Rather than trying to "hack" comment removal into the pre-processor it seems easier to use a PostCSS plugin instead. The one potential issue is that it also affects *some* whitespaces, and it's not clear to me if this'll work with the various CSS-related tests that run in mozilla-central.
    
    Please refer to https://www.npmjs.com/package/postcss-discard-comments for additional information.
    Snuffleupagus committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    7413546 View commit details
    Browse the repository at this point in the history