cssnano-preset-default 8.0.2 → 8.0.3
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/LICENSE-MIT +1 -1
- package/README.md +1 -1
- package/package.json +46 -35
- package/types/index.d.ts +38 -54
- package/types/index.d.ts.map +1 -1
package/LICENSE-MIT
CHANGED
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cssnano-preset-default",
|
|
3
|
-
"version": "8.0.
|
|
4
|
-
"main": "src/index.js",
|
|
5
|
-
"types": "types/index.d.ts",
|
|
3
|
+
"version": "8.0.3",
|
|
6
4
|
"description": "Safe defaults for cssnano which require minimal configuration.",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./types/index.d.ts",
|
|
8
|
+
"default": "./src/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./src": "./src/index.js",
|
|
11
|
+
"./src/index": "./src/index.js",
|
|
12
|
+
"./src/index.js": "./src/index.js",
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
7
15
|
"files": [
|
|
8
16
|
"LICENSE-MIT",
|
|
9
17
|
"src",
|
|
@@ -11,42 +19,45 @@
|
|
|
11
19
|
],
|
|
12
20
|
"license": "MIT",
|
|
13
21
|
"dependencies": {
|
|
14
|
-
"browserslist": "^4.28.
|
|
22
|
+
"browserslist": "^4.28.7",
|
|
15
23
|
"postcss-calc": "^10.1.1",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"postcss-
|
|
19
|
-
"postcss-
|
|
20
|
-
"postcss-discard-duplicates": "^8.0.
|
|
21
|
-
"postcss-discard-
|
|
22
|
-
"postcss-discard-
|
|
23
|
-
"postcss-
|
|
24
|
-
"postcss-merge-
|
|
25
|
-
"postcss-
|
|
26
|
-
"postcss-minify-gradients": "^8.0.
|
|
27
|
-
"postcss-minify-params": "^8.0.
|
|
28
|
-
"postcss-
|
|
29
|
-
"postcss-
|
|
30
|
-
"postcss-normalize-
|
|
31
|
-
"postcss-normalize-
|
|
32
|
-
"postcss-normalize-repeat-style": "^8.0.
|
|
33
|
-
"postcss-normalize-
|
|
34
|
-
"postcss-normalize-
|
|
35
|
-
"postcss-normalize-
|
|
36
|
-
"postcss-
|
|
37
|
-
"postcss-normalize-whitespace": "^8.0.
|
|
38
|
-
"postcss-
|
|
39
|
-
"postcss-reduce-initial": "^8.0.
|
|
40
|
-
"postcss-reduce-transforms": "^8.0.
|
|
41
|
-
"postcss-
|
|
42
|
-
"postcss-
|
|
24
|
+
"postcss-colormin": "^8.0.2",
|
|
25
|
+
"cssnano-utils": "^6.0.2",
|
|
26
|
+
"postcss-discard-comments": "^8.0.2",
|
|
27
|
+
"postcss-convert-values": "^8.0.2",
|
|
28
|
+
"postcss-discard-duplicates": "^8.0.2",
|
|
29
|
+
"postcss-discard-overridden": "^8.0.2",
|
|
30
|
+
"postcss-discard-empty": "^8.0.2",
|
|
31
|
+
"postcss-minify-font-values": "^8.0.2",
|
|
32
|
+
"postcss-merge-longhand": "^8.0.2",
|
|
33
|
+
"postcss-merge-rules": "^8.0.2",
|
|
34
|
+
"postcss-minify-gradients": "^8.0.2",
|
|
35
|
+
"postcss-minify-params": "^8.0.2",
|
|
36
|
+
"postcss-normalize-display-values": "^8.0.2",
|
|
37
|
+
"postcss-minify-selectors": "^8.0.3",
|
|
38
|
+
"postcss-normalize-charset": "^8.0.2",
|
|
39
|
+
"postcss-normalize-string": "^8.0.2",
|
|
40
|
+
"postcss-normalize-repeat-style": "^8.0.2",
|
|
41
|
+
"postcss-normalize-timing-functions": "^8.0.2",
|
|
42
|
+
"postcss-normalize-unicode": "^8.0.2",
|
|
43
|
+
"postcss-normalize-url": "^8.0.2",
|
|
44
|
+
"postcss-ordered-values": "^8.0.2",
|
|
45
|
+
"postcss-normalize-whitespace": "^8.0.2",
|
|
46
|
+
"postcss-normalize-positions": "^8.0.2",
|
|
47
|
+
"postcss-reduce-initial": "^8.0.2",
|
|
48
|
+
"postcss-reduce-transforms": "^8.0.2",
|
|
49
|
+
"postcss-unique-selectors": "^8.0.2",
|
|
50
|
+
"postcss-svgo": "^8.0.2"
|
|
43
51
|
},
|
|
44
52
|
"author": {
|
|
45
53
|
"name": "Ben Briggs",
|
|
46
54
|
"email": "beneb.info@gmail.com",
|
|
47
|
-
"url": "
|
|
55
|
+
"url": "https://beneb.info"
|
|
56
|
+
},
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "cssnano/cssnano"
|
|
48
60
|
},
|
|
49
|
-
"repository": "cssnano/cssnano",
|
|
50
61
|
"homepage": "https://github.com/cssnano/cssnano",
|
|
51
62
|
"bugs": {
|
|
52
63
|
"url": "https://github.com/cssnano/cssnano/issues"
|
|
@@ -55,9 +66,9 @@
|
|
|
55
66
|
"node": "^22.11.0 || ^24.11.0 || >=26.0"
|
|
56
67
|
},
|
|
57
68
|
"devDependencies": {
|
|
58
|
-
"postcss": "^8.5.
|
|
69
|
+
"postcss": "^8.5.25"
|
|
59
70
|
},
|
|
60
71
|
"peerDependencies": {
|
|
61
|
-
"postcss": "^8.5.
|
|
72
|
+
"postcss": "^8.5.25"
|
|
62
73
|
}
|
|
63
74
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,41 @@
|
|
|
1
1
|
export = defaultPreset;
|
|
2
|
+
export type SimpleOptions<OptionsExtends extends object | void = void> = false | (OptionsExtends & {
|
|
3
|
+
exclude?: true;
|
|
4
|
+
});
|
|
5
|
+
export type Options = {
|
|
6
|
+
discardComments?: SimpleOptions<import('postcss-discard-comments').Options>;
|
|
7
|
+
reduceInitial?: SimpleOptions<import('postcss-reduce-initial').Options>;
|
|
8
|
+
minifyGradients?: SimpleOptions;
|
|
9
|
+
svgo?: SimpleOptions<import('postcss-svgo').Options>;
|
|
10
|
+
reduceTransforms?: SimpleOptions;
|
|
11
|
+
convertValues?: SimpleOptions<import('postcss-convert-values').Options>;
|
|
12
|
+
calc?: SimpleOptions<import('postcss-calc').PostCssCalcOptions>;
|
|
13
|
+
colormin?: SimpleOptions<import('postcss-colormin').Options>;
|
|
14
|
+
orderedValues?: SimpleOptions;
|
|
15
|
+
minifySelectors?: SimpleOptions<import('postcss-minify-selectors').Options>;
|
|
16
|
+
minifyParams?: SimpleOptions<import('postcss-minify-params').Options>;
|
|
17
|
+
normalizeCharset?: SimpleOptions<import('postcss-normalize-charset').Options>;
|
|
18
|
+
minifyFontValues?: SimpleOptions<import('postcss-minify-font-values').Options>;
|
|
19
|
+
normalizeUrl?: SimpleOptions;
|
|
20
|
+
mergeLonghand?: SimpleOptions;
|
|
21
|
+
discardDuplicates?: SimpleOptions;
|
|
22
|
+
discardOverridden?: SimpleOptions;
|
|
23
|
+
normalizeRepeatStyle?: SimpleOptions;
|
|
24
|
+
mergeRules?: SimpleOptions<import('postcss-merge-rules').Options>;
|
|
25
|
+
discardEmpty?: SimpleOptions;
|
|
26
|
+
uniqueSelectors?: SimpleOptions;
|
|
27
|
+
normalizeString?: SimpleOptions<import('postcss-normalize-string').Options>;
|
|
28
|
+
normalizePositions?: SimpleOptions;
|
|
29
|
+
normalizeWhitespace?: SimpleOptions;
|
|
30
|
+
normalizeUnicode?: SimpleOptions<import('postcss-normalize-unicode').Options>;
|
|
31
|
+
normalizeDisplayValues?: SimpleOptions;
|
|
32
|
+
normalizeTimingFunctions?: SimpleOptions;
|
|
33
|
+
rawCache?: SimpleOptions;
|
|
34
|
+
};
|
|
35
|
+
export type AutoprefixerOptions = {
|
|
36
|
+
overrideBrowserslist?: string | string[];
|
|
37
|
+
};
|
|
38
|
+
export type BrowserslistOptions = Pick<import('browserslist').Options, 'stats' | 'path' | 'env'>;
|
|
2
39
|
/**
|
|
3
40
|
* Safe defaults for cssnano which require minimal configuration
|
|
4
41
|
*
|
|
@@ -6,59 +43,6 @@ export = defaultPreset;
|
|
|
6
43
|
* @returns {{ plugins: [import('postcss').PluginCreator<any>, Options[keyof Options]][] }}
|
|
7
44
|
*/
|
|
8
45
|
declare function defaultPreset(opts?: Options & AutoprefixerOptions & BrowserslistOptions): {
|
|
9
|
-
plugins: [import(
|
|
10
|
-
};
|
|
11
|
-
declare namespace defaultPreset {
|
|
12
|
-
export { SimpleOptions, Options, AutoprefixerOptions, BrowserslistOptions };
|
|
13
|
-
}
|
|
14
|
-
type SimpleOptions<OptionsExtends extends object | void = void> = false | (OptionsExtends & {
|
|
15
|
-
exclude?: true;
|
|
16
|
-
});
|
|
17
|
-
type Options = {
|
|
18
|
-
discardComments?: SimpleOptions<postcssDiscardComments.Options> | undefined;
|
|
19
|
-
reduceInitial?: SimpleOptions<postcssReduceInitial.Options> | undefined;
|
|
20
|
-
minifyGradients?: SimpleOptions<void> | undefined;
|
|
21
|
-
svgo?: SimpleOptions<postcssSvgo.Options> | undefined;
|
|
22
|
-
reduceTransforms?: SimpleOptions<void> | undefined;
|
|
23
|
-
convertValues?: SimpleOptions<postcssConvertValues.Options> | undefined;
|
|
24
|
-
calc?: SimpleOptions<postcssCalc.PostCssCalcOptions> | undefined;
|
|
25
|
-
colormin?: SimpleOptions<postcssColormin.Options> | undefined;
|
|
26
|
-
orderedValues?: SimpleOptions<void> | undefined;
|
|
27
|
-
minifySelectors?: SimpleOptions<postcssMinifySelectors.Options> | undefined;
|
|
28
|
-
minifyParams?: SimpleOptions<postcssMinifyParams.Options> | undefined;
|
|
29
|
-
normalizeCharset?: SimpleOptions<postcssNormalizeCharset.Options> | undefined;
|
|
30
|
-
minifyFontValues?: SimpleOptions<postcssMinifyFontValues.Options> | undefined;
|
|
31
|
-
normalizeUrl?: SimpleOptions<void> | undefined;
|
|
32
|
-
mergeLonghand?: SimpleOptions<void> | undefined;
|
|
33
|
-
discardDuplicates?: SimpleOptions<void> | undefined;
|
|
34
|
-
discardOverridden?: SimpleOptions<void> | undefined;
|
|
35
|
-
normalizeRepeatStyle?: SimpleOptions<void> | undefined;
|
|
36
|
-
mergeRules?: SimpleOptions<postcssMergeRules.Options> | undefined;
|
|
37
|
-
discardEmpty?: SimpleOptions<void> | undefined;
|
|
38
|
-
uniqueSelectors?: SimpleOptions<void> | undefined;
|
|
39
|
-
normalizeString?: SimpleOptions<postcssNormalizeString.Options> | undefined;
|
|
40
|
-
normalizePositions?: SimpleOptions<void> | undefined;
|
|
41
|
-
normalizeWhitespace?: SimpleOptions<void> | undefined;
|
|
42
|
-
normalizeUnicode?: SimpleOptions<postcssNormalizeUnicode.Options> | undefined;
|
|
43
|
-
normalizeDisplayValues?: SimpleOptions<void> | undefined;
|
|
44
|
-
normalizeTimingFunctions?: SimpleOptions<void> | undefined;
|
|
45
|
-
rawCache?: SimpleOptions<void> | undefined;
|
|
46
|
-
};
|
|
47
|
-
type AutoprefixerOptions = {
|
|
48
|
-
overrideBrowserslist?: string | string[];
|
|
46
|
+
plugins: [import('postcss').PluginCreator<any>, Options[keyof Options]][];
|
|
49
47
|
};
|
|
50
|
-
type BrowserslistOptions = Pick<import("browserslist").Options, "stats" | "path" | "env">;
|
|
51
|
-
import postcssDiscardComments = require("postcss-discard-comments");
|
|
52
|
-
import postcssReduceInitial = require("postcss-reduce-initial");
|
|
53
|
-
import postcssSvgo = require("postcss-svgo");
|
|
54
|
-
import postcssConvertValues = require("postcss-convert-values");
|
|
55
|
-
import postcssCalc = require("postcss-calc");
|
|
56
|
-
import postcssColormin = require("postcss-colormin");
|
|
57
|
-
import postcssMinifySelectors = require("postcss-minify-selectors");
|
|
58
|
-
import postcssMinifyParams = require("postcss-minify-params");
|
|
59
|
-
import postcssNormalizeCharset = require("postcss-normalize-charset");
|
|
60
|
-
import postcssMinifyFontValues = require("postcss-minify-font-values");
|
|
61
|
-
import postcssMergeRules = require("postcss-merge-rules");
|
|
62
|
-
import postcssNormalizeString = require("postcss-normalize-string");
|
|
63
|
-
import postcssNormalizeUnicode = require("postcss-normalize-unicode");
|
|
64
48
|
//# sourceMappingURL=index.d.ts.map
|
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":"SAuMiB,aAAa;AAzJ3B,YAAqD,aAAa,CADvC,cAAc,SAA9B,MAAM,GAAG,IAAI,GAAkB,IAAK,IACrC,KAAK,IAAG,cAAc,GAAG;IAAC,OAAO,CAAC,EAAE,IAAI,CAAA;CAAC,CAAA,CAAe;AAIlE,YAAkB,OAAO,GACzB;IAAuE,eAAe,AAAtF,CACA,EADW,aAAa,CAAC,OAAO,0BAA0B,EAAE,OAAO,CAAC,CACpE;IAAqE,aAAa,AAAlF,CACA,EADW,aAAa,CAAC,OAAO,wBAAwB,EAAE,OAAO,CAAC,CAClE;IAA2B,eAAe,AAA1C,CACA,EADW,aAAa,CACxB;IAA2D,IAAI,AAA/D,CACA,EADW,aAAa,CAAC,OAAO,cAAc,EAAE,OAAO,CAAC,CACxD;IAA2B,gBAAgB,AAA3C,CACA,EADW,aAAa,CACxB;IAAqE,aAAa,AAAlF,CACA,EADW,aAAa,CAAC,OAAO,wBAAwB,EAAE,OAAO,CAAC,CAClE;IAAsE,IAAI,AAA1E,CACA,EADW,aAAa,CAAC,OAAO,cAAc,EAAE,kBAAkB,CAAC,CACnE;IAA+D,QAAQ,AAAvE,CACA,EADW,aAAa,CAAC,OAAO,kBAAkB,EAAE,OAAO,CAAC,CAC5D;IAA2B,aAAa,AAAxC,CACA,EADW,aAAa,CACxB;IAAuE,eAAe,AAAtF,CACA,EADW,aAAa,CAAC,OAAO,0BAA0B,EAAE,OAAO,CAAC,CACpE;IAAoE,YAAY,AAAhF,CACA,EADW,aAAa,CAAC,OAAO,uBAAuB,EAAE,OAAO,CAAC,CACjE;IAAwE,gBAAgB,AAAxF,CACA,EADW,aAAa,CAAC,OAAO,2BAA2B,EAAE,OAAO,CAAC,CACrE;IAAyE,gBAAgB,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