@node-minify/types 10.3.0 → 10.4.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @node-minify/types
2
2
 
3
+ ## 10.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2e64877: feat: add `allowEmptyOutput` option to skip writing empty output files
8
+
9
+ When minifiers produce empty output (e.g., CSS files with only comments), the new `allowEmptyOutput` option allows gracefully skipping the file write instead of throwing a validation error. Also adds `--allow-empty-output` CLI flag.
10
+
3
11
  ## 10.3.0
4
12
 
5
13
  ## 10.2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-minify/types",
3
- "version": "10.3.0",
3
+ "version": "10.4.0",
4
4
  "description": "types for @node-minify",
5
5
  "keywords": [
6
6
  "compressor",
package/src/types.d.ts CHANGED
@@ -197,6 +197,14 @@ export type Settings<TOptions extends CompressorOptions = CompressorOptions> = {
197
197
  * @default false
198
198
  */
199
199
  replaceInPlace?: boolean;
200
+
201
+ /**
202
+ * Allow empty output without throwing an error.
203
+ * When true, if minification results in empty content, the output file will not be written.
204
+ * Useful for CSS files containing only comments that get stripped.
205
+ * @default false
206
+ */
207
+ allowEmptyOutput?: boolean;
200
208
  };
201
209
 
202
210
  /**