astro-html-minifier-next 2.0.1 → 2.0.2

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/README.md +4 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -24,24 +24,24 @@ export default defineConfig({
24
24
  collapseInlineTagWhitespace: false,
25
25
  collapseWhitespace: true,
26
26
  conservativeCollapse: false,
27
+ continueOnMinifyError: false,
27
28
  continueOnParseError: false,
28
29
  decodeEntities: true,
29
30
  html5: true,
30
31
  includeAutoGeneratedTags: true,
31
32
  keepClosingSlash: false,
32
- log: (msg) => { if (msg instanceof Error) throw msg },
33
- minifyCSS: { errorRecovery: false },
33
+ minifyCSS: true,
34
34
  minifyJS: true,
35
35
  minifyURLs: false,
36
36
  noNewlinesBeforeTagClose: false,
37
37
  preserveLineBreaks: false,
38
38
  preventAttributesEscaping: false,
39
39
  processConditionalComments: false,
40
- removeAttributeQuotes: false, // The HTML specification recommends to always use quotes, but technically they are optional in some cases.
40
+ removeAttributeQuotes: false, // Technically they are optional and can greatly reduce size, but the HTML specification recommends always using quotes.
41
41
  removeComments: true,
42
42
  removeEmptyAttributes: true,
43
43
  removeEmptyElements: false,
44
- removeOptionalTags: true,
44
+ removeOptionalTags: false,
45
45
  removeRedundantAttributes: true,
46
46
  removeScriptTypeAttributes: true,
47
47
  removeStyleLinkTypeAttributes: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-html-minifier-next",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Minify Astro HTML assets using html-minifier-next!",
5
5
  "homepage": "https://github.com/jonasgeiler/astro-html-minifier-next#readme",
6
6
  "bugs": "https://github.com/jonasgeiler/astro-html-minifier-next/issues",
@@ -18,12 +18,12 @@
18
18
  "astro": "^5.0.0"
19
19
  },
20
20
  "dependencies": {
21
- "html-minifier-next": "^4.1.1"
21
+ "html-minifier-next": "^4.3.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@biomejs/biome": "2.3.2",
25
25
  "@types/node": "24.9.2",
26
- "astro": "5.15.3",
26
+ "astro": "5.16.0",
27
27
  "typescript": "5.9.3"
28
28
  },
29
29
  "type": "module",