cssnano 6.0.3 → 7.0.4
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/README.md +1 -1
- package/package.json +8 -8
- package/src/index.js +3 -3
- package/types/index.d.ts +3 -2
- package/types/index.d.ts.map +1 -0
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cssnano",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "A modular minifier, built on top of the PostCSS ecosystem.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"lilconfig": "^3.
|
|
23
|
-
"cssnano-preset-default": "^
|
|
22
|
+
"lilconfig": "^3.1.2",
|
|
23
|
+
"cssnano-preset-default": "^7.0.4"
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://github.com/cssnano/cssnano",
|
|
26
26
|
"author": {
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"url": "https://github.com/cssnano/cssnano/issues"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
|
-
"node": "^
|
|
41
|
+
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"autoprefixer": "^10.4.
|
|
45
|
-
"postcss": "^8.4.
|
|
46
|
-
"cssnano-preset-advanced": "^
|
|
47
|
-
"cssnano-preset-lite": "^
|
|
44
|
+
"autoprefixer": "^10.4.19",
|
|
45
|
+
"postcss": "^8.4.39",
|
|
46
|
+
"cssnano-preset-advanced": "^7.0.4",
|
|
47
|
+
"cssnano-preset-lite": "^4.0.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"postcss": "^8.4.31"
|
package/src/index.js
CHANGED
|
@@ -15,7 +15,7 @@ function isResolvable(moduleId) {
|
|
|
15
15
|
try {
|
|
16
16
|
require.resolve(moduleId);
|
|
17
17
|
return true;
|
|
18
|
-
} catch
|
|
18
|
+
} catch {
|
|
19
19
|
return false;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -42,8 +42,8 @@ function resolvePreset(preset) {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// For JS setups where we invoked the preset already
|
|
45
|
-
if (
|
|
46
|
-
return
|
|
45
|
+
if (fn.plugins) {
|
|
46
|
+
return fn.plugins;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
// Provide an alias for the default preset, as it is built-in.
|
package/types/index.d.ts
CHANGED
|
@@ -4,13 +4,14 @@ export = cssnanoPlugin;
|
|
|
4
4
|
* @param {Options=} options
|
|
5
5
|
* @return {import('postcss').Processor}
|
|
6
6
|
*/
|
|
7
|
-
declare function cssnanoPlugin(options?: Options | undefined): import(
|
|
7
|
+
declare function cssnanoPlugin(options?: Options | undefined): import("postcss").Processor;
|
|
8
8
|
declare namespace cssnanoPlugin {
|
|
9
9
|
export { postcss, Options };
|
|
10
10
|
}
|
|
11
|
+
declare var postcss: true;
|
|
11
12
|
type Options = {
|
|
12
13
|
preset?: any;
|
|
13
14
|
plugins?: any[];
|
|
14
15
|
configFile?: string;
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAqHA;;;;GAIG;AACH,yCAHW,OAAO,YAAC,GACP,OAAO,SAAS,EAAE,SAAS,CAwCtC;;;;;eAxJa;IAAC,MAAM,CAAC,EAAE,GAAG,CAAC;IAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAC"}
|