html-minifier-next 1.4.1 → 1.4.3
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 +2 -2
- package/cli.js +1 -1
- package/dist/htmlminifier.cjs +1929 -0
- package/dist/htmlminifier.esm.bundle.js +62020 -0
- package/dist/htmlminifier.umd.bundle.js +62031 -0
- package/dist/htmlminifier.umd.bundle.min.js +9 -0
- package/package.json +3 -2
- package/src/htmlminifier.js +41 -13
package/README.md
CHANGED
|
@@ -176,7 +176,7 @@ Most of the options are disabled by default.
|
|
|
176
176
|
| `maxLineLength` | Specify a maximum line length; compressed output will be split by newlines at valid HTML split-points | |
|
|
177
177
|
| `minifyCSS` | Minify CSS in `style` elements and `style` attributes (uses [clean-css](https://github.com/jakubpawlowicz/clean-css)) | `false` (could be `true`, `Object`, `Function(text, type)`) |
|
|
178
178
|
| `minifyJS` | Minify JavaScript in `script` elements and event attributes (uses [Terser](https://github.com/terser/terser)) | `false` (could be `true`, `Object`, `Function(text, inline)`) |
|
|
179
|
-
| `minifyURLs` | Minify URLs in various attributes (uses [relateurl](https://github.com/stevenvachon/relateurl)) | `false` (could be `String`, `Object`, `Function(text)`) |
|
|
179
|
+
| `minifyURLs` | Minify URLs in various attributes (uses [relateurl](https://github.com/stevenvachon/relateurl)) | `false` (could be `String`, `Object`, `Function(text)`, `async Function(text)`) |
|
|
180
180
|
| `noNewlinesBeforeTagClose` | Never add a newline before a tag that closes an element | `false` |
|
|
181
181
|
| `preserveLineBreaks` | Always collapse to 1 line break (never remove it entirely) when whitespace between tags includes a line break—use with `collapseWhitespace=true` | `false` |
|
|
182
182
|
| `preventAttributesEscaping` | Prevents the escaping of the values of attributes | `false` |
|
|
@@ -298,4 +298,4 @@ npm run serve
|
|
|
298
298
|
|
|
299
299
|
## Acknowledgements
|
|
300
300
|
|
|
301
|
-
With many thanks to all the previous authors of HTML Minifier, especially [Juriy Zaytsev](https://github.com/kangax), and to everyone who helped make this new edition better,
|
|
301
|
+
With many thanks to all the previous authors of HTML Minifier, especially [Juriy Zaytsev](https://github.com/kangax), and to everyone who helped make this new edition better, particularly [Daniel Ruf](https://github.com/DanielRuf) and [Jonas Geiler](https://github.com/jonasgeiler).
|
package/cli.js
CHANGED
|
@@ -125,7 +125,7 @@ const mainOptions = {
|
|
|
125
125
|
preventAttributesEscaping: 'Prevents the escaping of the values of attributes',
|
|
126
126
|
processConditionalComments: 'Process contents of conditional comments through minifier',
|
|
127
127
|
processScripts: ['Array of strings corresponding to types of “script” elements to process through minifier (e.g., “text/ng-template”, “text/x-handlebars-template”, etc.)', parseJSONArray],
|
|
128
|
-
quoteCharacter: ['Type of quote to use for attribute values (“\'” or
|
|
128
|
+
quoteCharacter: ['Type of quote to use for attribute values (“\'” or “"”)', parseString],
|
|
129
129
|
removeAttributeQuotes: 'Remove quotes around attributes when possible',
|
|
130
130
|
removeComments: 'Strip HTML comments',
|
|
131
131
|
removeEmptyAttributes: 'Remove all attributes with whitespace-only values',
|