html-minifier
html-minifier copied to clipboard
Javascript-based HTML compressor/minifier (with Node.js support)
Can this plugin minify the css classes like this: ```css .-pre-menu-post- {color: red;} .-pre-menu_top-post- {color: black;} .-pre-menu_item-post- {color: green;} .-pre-menu_item_active-post- {color: blue;} .-pre-menu_item_active-post-::before {content: 'active'} ``` Result ```css .a0 {color:...
html-minifier currently seems to leave `` contents intact. It could be that #1046 is sufficient to resolve this.
When running ```bash NODE_ENV=production ./node_modules/.bin/node-minify --compressor html-minifier --input './static/index.html' --output './static/index.html' --option '{"collapseWhitespace": true, "collapseInlineTagWhitespace": true, "preserveLineBreaks": true, "removeScriptTypeAttributes": true, "conservativeCollapse": true }' ``` I do get a file where...
inline javascript minify in tag is not working when use const or let but when i change to var it's work fine
Here is a test case: ``` ``` When I minify it with `includeAutoGeneratedTags` set to `false`, I get the following output ``. As you can see, a closing `` is...
Yes, I know that type="text" is the default for an tag, so therefore it should be safe to strip it out. The problem is when there are css rules that...
**how to reproduce:** 1. create example html file "input.html": ```html Before output tag text 23 after output tag text. Before b tag text 23 after b tag text. ``` 2....
even doing `ignoreCustomFragments: [ /\[%.*?%]/s ]`, it will not ignore `
This plugin does a great job. Here's a feature request to please add support to convert css link tags to async/preload tags for example convert `` to ``
Hi, in my header.php I open the body-tag in in my footer.php I close it. But html-minifier removes this tag in my footer.php because it can't find the opening-tag in...