Make WordPress Core


Ignore:
Timestamp:
01/18/2021 05:51:58 PM (6 years ago)
Author:
ryelle
Message:

Twenty Twenty-One: Remove duplicate CSS rules.

Introduces a new PostCSS plugin, postcss-discard-duplicates, which will automatically remove any duplicate CSS rules. All the CSS that is removed shows up again later in the file. This also fixes a bug from postcss-css-variables, where media queries are duplicated.

Fixes #52158.
Props poena.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/package.json

    r49960 r49980  
    2525                "postcss-css-variables": "^0.17.0",
    2626                "postcss-custom-media": "^7.0.8",
     27                "postcss-discard-duplicates": "^4.0.2",
    2728                "postcss-focus-within": "^3.0.0",
    2829                "postcss-nested": "^4.2.1",
Note: See TracChangeset for help on using the changeset viewer.