html-minifier icon indicating copy to clipboard operation
html-minifier copied to clipboard

Javascript-based HTML compressor/minifier (with Node.js support)

Results 113 html-minifier issues
Sort by recently updated
recently updated
newest added

This PR is to address the exception being thrown if the target html file contains `link` tags whose `type` attribute is defined but without a value. For example, when using...

`` and `` will be converted to `` Instead of preserving the space Minifier will add a useless additional space between `class` and `id` which won't work anymore. Is there...

I am using this in my HUGO project. It works GREAT! so thank you very much for that! here is part of my package.json for building: ``` "minify:html": "html-minifier --input-dir...

I'm getting an issue when I use `sortAttributes` with lit-element `render()` strings that have elements with event listeners in the `@event`-style declaration. Example: ``` protected render() { return html` `;...

Custom tags in a browser are getting per default the display: inline css rule. The collapseWhitespace option on the other side handles them as a block element and removes the...

Add ability to "processScripts" via a custom function. Useful for WebGL shaders and json-ld data. For example, these options... ```javascript const minifyOpt={ "processScripts": [ "application/ld+json", "x-shader/x-vertex", "x-shader/x-fragment" ], "processScriptsFunction": function(text,script){...

```html 表头1 表头2 body1 body2 body3 body4 tfoot1 tfoot2 ``` Preserve line-breaks == false ```html 表头1表头2body1body2body3body4tfoot1tfoot2 ``` miss </tfoot> and </thead> and </th></td> </tr>

Hi the `html-webpack-plugin` is making heavy use of `html-minifier` to keep the html compact. Now that many browsers support ES6 out of the box, people start using ES6 inside script...

I recently upgraded from 3.5.16 to 3.5.21. I noticed in 3.5.21 that an empty file seems to hang, but worked in 3.5.16: ``` touch blank.html html-minifier blank.html ```

```html console.log(1 < 2) ``` say i have the code above, how do i parse javascript inside a `wxs` tag? or let's say how do i avoid the character '