cssnano-preset-default 7.0.5 → 7.0.7
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 +32 -32
- package/src/index.js +4 -1
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cssnano-preset-default",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.7",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"types": "types/index.d.ts",
|
|
6
6
|
"description": "Safe defaults for cssnano which require minimal configuration.",
|
|
@@ -11,36 +11,36 @@
|
|
|
11
11
|
],
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"browserslist": "^4.
|
|
14
|
+
"browserslist": "^4.24.5",
|
|
15
15
|
"css-declaration-sorter": "^7.2.0",
|
|
16
|
-
"postcss-calc": "^10.
|
|
17
|
-
"cssnano-utils": "^5.0.
|
|
18
|
-
"postcss-colormin": "^7.0.
|
|
19
|
-
"postcss-convert-values": "^7.0.
|
|
20
|
-
"postcss-discard-comments": "^7.0.
|
|
21
|
-
"postcss-discard-duplicates": "^7.0.
|
|
22
|
-
"postcss-discard-empty": "^7.0.
|
|
23
|
-
"postcss-discard-overridden": "^7.0.
|
|
24
|
-
"postcss-merge-longhand": "^7.0.
|
|
25
|
-
"postcss-merge-rules": "^7.0.
|
|
26
|
-
"postcss-minify-font-values": "^7.0.
|
|
27
|
-
"postcss-minify-gradients": "^7.0.
|
|
28
|
-
"postcss-minify-params": "^7.0.
|
|
29
|
-
"postcss-minify-selectors": "^7.0.
|
|
30
|
-
"postcss-normalize-charset": "^7.0.
|
|
31
|
-
"postcss-normalize-display-values": "^7.0.
|
|
32
|
-
"postcss-normalize-positions": "^7.0.
|
|
33
|
-
"postcss-normalize-repeat-style": "^7.0.
|
|
34
|
-
"postcss-normalize-string": "^7.0.
|
|
35
|
-
"postcss-normalize-timing-functions": "^7.0.
|
|
36
|
-
"postcss-normalize-unicode": "^7.0.
|
|
37
|
-
"postcss-normalize-url": "^7.0.
|
|
38
|
-
"postcss-normalize-whitespace": "^7.0.
|
|
39
|
-
"postcss-ordered-values": "^7.0.
|
|
40
|
-
"postcss-reduce-initial": "^7.0.
|
|
41
|
-
"postcss-reduce-transforms": "^7.0.
|
|
42
|
-
"postcss-svgo": "^7.0.
|
|
43
|
-
"postcss-unique-selectors": "^7.0.
|
|
16
|
+
"postcss-calc": "^10.1.1",
|
|
17
|
+
"cssnano-utils": "^5.0.1",
|
|
18
|
+
"postcss-colormin": "^7.0.3",
|
|
19
|
+
"postcss-convert-values": "^7.0.5",
|
|
20
|
+
"postcss-discard-comments": "^7.0.4",
|
|
21
|
+
"postcss-discard-duplicates": "^7.0.2",
|
|
22
|
+
"postcss-discard-empty": "^7.0.1",
|
|
23
|
+
"postcss-discard-overridden": "^7.0.1",
|
|
24
|
+
"postcss-merge-longhand": "^7.0.5",
|
|
25
|
+
"postcss-merge-rules": "^7.0.5",
|
|
26
|
+
"postcss-minify-font-values": "^7.0.1",
|
|
27
|
+
"postcss-minify-gradients": "^7.0.1",
|
|
28
|
+
"postcss-minify-params": "^7.0.3",
|
|
29
|
+
"postcss-minify-selectors": "^7.0.5",
|
|
30
|
+
"postcss-normalize-charset": "^7.0.1",
|
|
31
|
+
"postcss-normalize-display-values": "^7.0.1",
|
|
32
|
+
"postcss-normalize-positions": "^7.0.1",
|
|
33
|
+
"postcss-normalize-repeat-style": "^7.0.1",
|
|
34
|
+
"postcss-normalize-string": "^7.0.1",
|
|
35
|
+
"postcss-normalize-timing-functions": "^7.0.1",
|
|
36
|
+
"postcss-normalize-unicode": "^7.0.3",
|
|
37
|
+
"postcss-normalize-url": "^7.0.1",
|
|
38
|
+
"postcss-normalize-whitespace": "^7.0.1",
|
|
39
|
+
"postcss-ordered-values": "^7.0.2",
|
|
40
|
+
"postcss-reduce-initial": "^7.0.3",
|
|
41
|
+
"postcss-reduce-transforms": "^7.0.1",
|
|
42
|
+
"postcss-svgo": "^7.0.2",
|
|
43
|
+
"postcss-unique-selectors": "^7.0.4"
|
|
44
44
|
},
|
|
45
45
|
"author": {
|
|
46
46
|
"name": "Ben Briggs",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"postcss": "^8.
|
|
59
|
+
"postcss": "^8.5.3"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"postcss": "^8.4.
|
|
62
|
+
"postcss": "^8.4.32"
|
|
63
63
|
}
|
|
64
64
|
}
|
package/src/index.js
CHANGED
|
@@ -60,7 +60,7 @@ const { rawCache } = require('cssnano-utils');
|
|
|
60
60
|
* @property {SimpleOptions<import('postcss-calc').PostCssCalcOptions>} [calc]
|
|
61
61
|
* @property {SimpleOptions<import('postcss-colormin').Options>} [colormin]
|
|
62
62
|
* @property {SimpleOptions} [orderedValues]
|
|
63
|
-
* @property {SimpleOptions} [minifySelectors]
|
|
63
|
+
* @property {SimpleOptions<import('postcss-minify-selectors').Options>} [minifySelectors]
|
|
64
64
|
* @property {SimpleOptions<import('postcss-minify-params').Options>} [minifyParams]
|
|
65
65
|
* @property {SimpleOptions<import('postcss-normalize-charset').Options>} [normalizeCharset]
|
|
66
66
|
* @property {SimpleOptions<import('postcss-minify-font-values').Options>} [minifyFontValues]
|
|
@@ -131,6 +131,9 @@ function configurePlugins(plugins, opts = {}) {
|
|
|
131
131
|
cssDeclarationSorter: {
|
|
132
132
|
keepOverrides: true,
|
|
133
133
|
},
|
|
134
|
+
minifySelectors: {
|
|
135
|
+
sort: true,
|
|
136
|
+
},
|
|
134
137
|
svgo: {
|
|
135
138
|
plugins: [
|
|
136
139
|
{
|
package/types/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ type Options = {
|
|
|
28
28
|
calc?: SimpleOptions<postcssCalc.PostCssCalcOptions> | undefined;
|
|
29
29
|
colormin?: SimpleOptions<postcssColormin.Options> | undefined;
|
|
30
30
|
orderedValues?: SimpleOptions<void> | undefined;
|
|
31
|
-
minifySelectors?: SimpleOptions<
|
|
31
|
+
minifySelectors?: SimpleOptions<postcssMinifySelectors.Options> | undefined;
|
|
32
32
|
minifyParams?: SimpleOptions<postcssMinifyParams.Options> | undefined;
|
|
33
33
|
normalizeCharset?: SimpleOptions<postcssNormalizeCharset.Options> | undefined;
|
|
34
34
|
minifyFontValues?: SimpleOptions<postcssMinifyFontValues.Options> | undefined;
|
|
@@ -58,6 +58,7 @@ import postcssSvgo = require("postcss-svgo");
|
|
|
58
58
|
import postcssConvertValues = require("postcss-convert-values");
|
|
59
59
|
import postcssCalc = require("postcss-calc");
|
|
60
60
|
import postcssColormin = require("postcss-colormin");
|
|
61
|
+
import postcssMinifySelectors = require("postcss-minify-selectors");
|
|
61
62
|
import postcssMinifyParams = require("postcss-minify-params");
|
|
62
63
|
import postcssNormalizeCharset = require("postcss-normalize-charset");
|
|
63
64
|
import postcssMinifyFontValues = require("postcss-minify-font-values");
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAqKA;;;;;GAKG;AACH,sCAHW,OAAO,GAAG,mBAAmB,GAAG,mBAAmB,GACjD;IAAE,OAAO,EAAE,CAAC,OAAO,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,MAAM,OAAO,CAAC,CAAC,EAAE,CAAA;CAAE,CAuCzF;;;;mBAlK6B,cAAc,SAA9B,MAAM,GAAG,IAAK,WACf,KAAK,IAAG,cAAc,GAAG;IAAC,OAAO,CAAC,EAAE,IAAI,CAAA;CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAqCzC;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE;2BAC5C,IAAI,CAAC,OAAO,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC"}
|