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

Resolves #1111 by updating `camel-case`, `commander` and `param-case`. Apparently also closes #985. Also makes the CLI output a help message instead of running forever (which is the current behaviour) when...

Node JS html-minifier wont minify a .txt file. ``` try { download(message.attachments.first().url); var minified = require('html-minifier'); var MinifyResult = minified.minify( fs.readFileSync("./minified/nonminified.txt"), { removeAttributeQuotes: true } ); await sleep(5000); fs.writeFile("./minified/minified.txt", fs.readFileSync("./minified/nonminified.txt"),...

`htmlcompressor.com` has an upper limit of ~300KB hence why it fails. We could probably just drop it later. Also, IMHO we should move the benchmark script into the benchmark folder...

no-squash

the fix for #860 enabled disabling these 2 flags from the command line but also made them uncontrollable from the JSON config file old commander.js (not 2021 commander.js) assigns boolean...

When I run with `removeEmptyElements: true` mode SVG tag and its child tags is cleared in `index.html` `removeEmptyElements: false` ```html ``` ----------------------------------------- `removeEmptyElements: true` ```html ```

There’s a problem with `--remove-optional-tags` in definition lists: At least in the CLI version of html-minifier (4.0.0), for already optimized markup it _adds_ optional `` tags. Test case with all...