@docusaurus/cssnano-preset 2.0.0-beta.15 → 2.0.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/cssnano-preset",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.16",
|
|
4
4
|
"description": "Advanced cssnano preset for maximum optimization.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"directory": "packages/docusaurus-cssnano-preset"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"cssnano-preset-advanced": "^5.1.
|
|
17
|
-
"postcss": "^8.
|
|
18
|
-
"postcss-sort-media-queries": "^4.1
|
|
16
|
+
"cssnano-preset-advanced": "^5.1.12",
|
|
17
|
+
"postcss": "^8.4.6",
|
|
18
|
+
"postcss-sort-media-queries": "^4.2.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"to-vfile": "^6.0.0"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "eb43c4d4f95a4fb97dc9bb9dc615413e0dc2e1e7"
|
|
24
24
|
}
|
|
@@ -6,12 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* This PostCSS plugin will remove duplicate/same custom properties (which are
|
|
9
|
+
* This PostCSS plugin will remove duplicate/same custom properties (which are
|
|
10
|
+
* actually overridden ones) **only** from `:root` selector.
|
|
10
11
|
*
|
|
11
|
-
* Depending on the presence of an `!important` rule in value of custom
|
|
12
|
+
* Depending on the presence of an `!important` rule in value of custom
|
|
13
|
+
* property, the following actions will happen:
|
|
12
14
|
*
|
|
13
|
-
* - If the same custom properties do **not** have an `!important` rule, then
|
|
14
|
-
*
|
|
15
|
+
* - If the same custom properties do **not** have an `!important` rule, then
|
|
16
|
+
* all of them will be removed except for the last one (which will actually be
|
|
17
|
+
* applied).
|
|
18
|
+
* - If the same custom properties have at least one `!important` rule, then
|
|
19
|
+
* only those properties that do not have this rule will be removed.
|
|
15
20
|
* @returns {import('postcss').Plugin}
|
|
16
21
|
*/
|
|
17
22
|
module.exports = function creator() {
|