astro-html-minifier-next 2.0.0 → 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.
- package/README.md +5 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -21,27 +21,27 @@ export default defineConfig({
|
|
|
21
21
|
/* My recommended html-minifier-next options: */
|
|
22
22
|
caseSensitive: true,
|
|
23
23
|
collapseBooleanAttributes: true,
|
|
24
|
-
collapseInlineTagWhitespace:
|
|
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
|
-
|
|
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, //
|
|
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:
|
|
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.
|
|
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.
|
|
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.
|
|
26
|
+
"astro": "5.16.0",
|
|
27
27
|
"typescript": "5.9.3"
|
|
28
28
|
},
|
|
29
29
|
"type": "module",
|