uglify-js-minify-css-allfiles 2.7.0 → 2.7.1

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.
Files changed (2) hide show
  1. package/minify.d.ts +59 -3
  2. package/package.json +2 -2
package/minify.d.ts CHANGED
@@ -66,7 +66,43 @@ declare module 'uglify-js-minify-css-allfiles' {
66
66
  /**
67
67
  * Additional Babel plugins to include in the transformation process.
68
68
  */
69
- plugins?: Array<string | Array | Function>;
69
+ plugins?: Array<string | any[] | Function>;
70
+ }
71
+
72
+ /**
73
+ * Configuration options for PostCSS processing.
74
+ */
75
+ export interface PostCSSOptions {
76
+ /**
77
+ * Target browsers for the CSS compatibility.
78
+ * Can be an array of browser strings or a browserslist configuration object.
79
+ */
80
+ browsers?: string[] | { [key: string]: any };
81
+
82
+ /**
83
+ * CSS features stage level.
84
+ * @default 2
85
+ */
86
+ stage?: 0 | 1 | 2 | 3 | 4 | 5;
87
+
88
+ /**
89
+ * Specific CSS features to enable/disable.
90
+ */
91
+ features?: {
92
+ [key: string]: boolean;
93
+ };
94
+
95
+ /**
96
+ * Autoprefixer options.
97
+ */
98
+ autoprefixer?: {
99
+ [key: string]: any;
100
+ };
101
+
102
+ /**
103
+ * Additional PostCSS plugins to use.
104
+ */
105
+ plugins?: Array<any>;
70
106
  }
71
107
 
72
108
  /**
@@ -172,6 +208,14 @@ declare module 'uglify-js-minify-css-allfiles' {
172
208
  */
173
209
  useBabel?: boolean | BabelOptions;
174
210
 
211
+ /**
212
+ * Enables PostCSS processing of CSS files.
213
+ * If true, uses default PostCSS settings.
214
+ * If an object is provided, it should conform to the PostCSSOptions interface.
215
+ * @default false
216
+ */
217
+ usePostCSS?: boolean | PostCSSOptions;
218
+
175
219
  /**
176
220
  * Configures logging behavior.
177
221
  * If true, uses default logging settings.
@@ -228,12 +272,24 @@ declare module 'uglify-js-minify-css-allfiles' {
228
272
  * useBuiltIns: 'usage',
229
273
  * corejs: 3
230
274
  * },
275
+ * usePostCSS: {
276
+ * browsers: ['Chrome >= 40'],
277
+ * stage: 2,
278
+ * features: {
279
+ * 'nesting-rules': true,
280
+ * 'custom-properties': true,
281
+ * 'color-functional-notation': true,
282
+ * },
283
+ * autoprefixer: {
284
+ * grid: true,
285
+ * },
286
+ * },
231
287
  * useLog: {
232
288
  * logLevel: 'warn',
233
289
  * retentionDays: 7
234
290
  * },
235
- * useJsMap: true // Enable source map generation
236
- * useCssMap: true // Enable source map generation
291
+ * useJsMap: true,
292
+ * useCssMap: true
237
293
  * });
238
294
  * ```
239
295
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uglify-js-minify-css-allfiles",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "you will be able to minify all files as same file names which is js or css",
5
5
  "main": "minify.js",
6
6
  "type": "module",
@@ -53,4 +53,4 @@
53
53
  "uglify-js": "^3.19.2",
54
54
  "uglify-js-es6": "^2.8.9"
55
55
  }
56
- }
56
+ }