Make WordPress Core


Ignore:
Timestamp:
01/18/2021 05:51:58 PM (3 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-lock.json

    r49873 r49980  
    414414                "prettier": "npm:wp-prettier@2.0.5",
    415415                "requireindex": "^1.2.0"
    416             },
    417             "dependencies": {
    418                 "prettier": {
    419                     "version": "npm:wp-prettier@2.0.5",
    420                     "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.0.5.tgz",
    421                     "integrity": "sha512-5GCgdeevIXwR3cW4Qj5XWC5MO1iSCz8+IPn0mMw6awAt/PBiey8yyO7MhePRsaMqghJAhg6Q3QLYWSnUHWkG6A==",
    422                     "dev": true
    423                 }
    424416            }
    425417        },
     
    30113003            }
    30123004        },
     3005        "postcss-discard-duplicates": {
     3006            "version": "4.0.2",
     3007            "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-4.0.2.tgz",
     3008            "integrity": "sha512-ZNQfR1gPNAiXZhgENFfEglF93pciw0WxMkJeVmw8eF+JZBbMD7jp6C67GqJAXVZP2BWbOztKfbsdmMp/k8c6oQ==",
     3009            "dev": true,
     3010            "requires": {
     3011                "postcss": "^7.0.0"
     3012            }
     3013        },
    30133014        "postcss-focus-within": {
    30143015            "version": "3.0.0",
     
    31783179            "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
    31793180            "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
     3181            "dev": true
     3182        },
     3183        "prettier": {
     3184            "version": "npm:wp-prettier@2.0.5",
     3185            "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.0.5.tgz",
     3186            "integrity": "sha512-5GCgdeevIXwR3cW4Qj5XWC5MO1iSCz8+IPn0mMw6awAt/PBiey8yyO7MhePRsaMqghJAhg6Q3QLYWSnUHWkG6A==",
    31803187            "dev": true
    31813188        },
Note: See TracChangeset for help on using the changeset viewer.