diff options
Diffstat (limited to 'node_modules/html-minifier/README.md')
-rw-r--r-- | node_modules/html-minifier/README.md | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/node_modules/html-minifier/README.md b/node_modules/html-minifier/README.md index 59587cc2a..37de324f4 100644 --- a/node_modules/html-minifier/README.md +++ b/node_modules/html-minifier/README.md @@ -3,14 +3,12 @@ [](https://www.npmjs.com/package/html-minifier) [](https://travis-ci.org/kangax/html-minifier) [](https://david-dm.org/kangax/html-minifier) -[](https://david-dm.org/kangax/html-minifier?type=dev) -[](https://gitter.im/kangax/html-minifier) -[HTMLMinifier](http://kangax.github.io/html-minifier/) is a highly **configurable**, **well-tested**, JavaScript-based HTML minifier. +[HTMLMinifier](https://kangax.github.io/html-minifier/) is a highly **configurable**, **well-tested**, JavaScript-based HTML minifier. See [corresponding blog post](http://perfectionkills.com/experimenting-with-html-minifier/) for all the gory details of [how it works](http://perfectionkills.com/experimenting-with-html-minifier/#how_it_works), [description of each option](http://perfectionkills.com/experimenting-with-html-minifier/#options), [testing results](http://perfectionkills.com/experimenting-with-html-minifier/#field_testing) and [conclusions](http://perfectionkills.com/experimenting-with-html-minifier/#cost_and_benefits). -[Test suite is available online](http://kangax.github.io/html-minifier/tests/). +[Test suite is available online](https://kangax.github.io/html-minifier/tests/). Also see corresponding [Ruby wrapper](https://github.com/stereobooster/html_minifier), and for Node.js, [Grunt plugin](https://github.com/gruntjs/grunt-contrib-htmlmin), [Gulp module](https://github.com/jonschlinkert/gulp-htmlmin), [Koa middleware wrapper](https://github.com/koajs/html-minifier) and [Express middleware wrapper](https://github.com/melonmanchan/express-minify-html). @@ -20,21 +18,21 @@ For lint-like capabilities take a look at [HTMLLint](https://github.com/kangax/h How does HTMLMinifier compare to other solutions — [HTML Minifier from Will Peavy](http://www.willpeavy.com/minifier/) (1st result in [Google search for "html minifier"](https://www.google.com/#q=html+minifier)) as well as [htmlcompressor.com](http://htmlcompressor.com) and [minimize](https://github.com/Swaagie/minimize)? -| Site | Original size *(KB)* | HTMLMinifier | minimize | Will Peavy | htmlcompressor.com | -| --------------------------------------------------------------------------- |:--------------------:| ------------:| --------:| ----------:| ------------------:| -| [Google](https://www.google.com/) | 45 | **42** | 45 | 46 | 45 | -| [HTMLMinifier](https://github.com/kangax/html-minifier) | 131 | **102** | 110 | 114 | 109 | -| [CNN](http://www.cnn.com/) | 134 | **122** | 131 | 132 | 126 | -| [Amazon](http://www.amazon.co.uk/) | 201 | **169** | 193 | 197 | n/a | -| [New York Times](http://www.nytimes.com/) | 216 | **144** | 165 | 161 | 151 | -| [Stack Overflow](http://stackoverflow.com/) | 240 | **187** | 196 | 203 | 193 | -| [Bootstrap CSS](http://getbootstrap.com/css/) | 272 | **260** | 269 | 229 | 269 | -| [BBC](http://www.bbc.co.uk/) | 287 | **235** | 279 | 286 | 271 | -| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 530 | **486** | 511 | 529 | 510 | -| [NBC](http://www.nbc.com/) | 662 | **623** | 658 | 661 | n/a | -| [Eloquent Javascript](http://eloquentjavascript.net/1st_edition/print.html) | 870 | **815** | 840 | 864 | n/a | -| [ES6 table](http://kangax.github.io/compat-table/es6/) | 3844 | **3252** | 3630 | n/a | n/a | -| [ES6 draft](https://tc39.github.io/ecma262/) | 5576 | **4974** | 5122 | n/a | n/a | +| Site | Original size *(KB)* | HTMLMinifier | minimize | Will Peavy | htmlcompressor.com | +| ---------------------------------------------------------------------------- |:--------------------:| ------------:| --------:| ----------:| ------------------:| +| [Google](https://www.google.com/) | 47 | **43** | 47 | 49 | 47 | +| [Twitter](https://twitter.com/) | 146 | **115** | 138 | 155 | 138 | +| [HTMLMinifier](https://github.com/kangax/html-minifier) | 171 | **128** | 143 | 148 | 142 | +| [New York Times](https://www.nytimes.com/) | 207 | **139** | 158 | 155 | 144 | +| [Stack Overflow](https://stackoverflow.com/) | 256 | **199** | 209 | 217 | 206 | +| [Bootstrap CSS](https://getbootstrap.com/docs/3.3/css/) | 271 | **260** | 269 | 229 | 269 | +| [BBC](https://www.bbc.co.uk/) | 294 | **238** | 285 | 289 | 278 | +| [Amazon](https://www.amazon.co.uk/) | 377 | **328** | 368 | 379 | n/a | +| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 520 | **484** | 504 | 523 | 503 | +| [NBC](https://www.nbc.com/) | 669 | **633** | 668 | 669 | n/a | +| [Eloquent Javascript](https://eloquentjavascript.net/1st_edition/print.html) | 870 | **815** | 840 | 864 | n/a | +| [ES6 table](https://kangax.github.io/compat-table/es6/) | 5243 | **4472** | 4963 | n/a | n/a | +| [ES6 draft](https://tc39.github.io/ecma262/) | 6072 | **5449** | 5615 | n/a | n/a | ## Options Quick Reference @@ -58,7 +56,7 @@ Most of the options are disabled by default. | `includeAutoGeneratedTags` | Insert tags generated by HTML parser | `true` | | `keepClosingSlash` | Keep the trailing slash on singleton elements | `false` | | `maxLineLength` | Specify a maximum line length. Compressed output will be split by newlines at valid HTML split-points | -| `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)`) | +| `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)`) | | `minifyJS` | Minify JavaScript in script elements and event attributes (uses [UglifyJS](https://github.com/mishoo/UglifyJS2)) | `false` (could be `true`, `Object`, `Function(text, inline)`) | | `minifyURLs` | Minify URLs in various attributes (uses [relateurl](https://github.com/stevenvachon/relateurl)) | `false` (could be `String`, `Object`, `Function(text)`) | | `preserveLineBreaks` | Always collapse to 1 line break (never remove it entirely) when whitespace between tags include a line break. Must be used in conjunction with `collapseWhitespace=true` | `false` | |