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

Hi, I'm using html-minifier to handle lit HTML template literal, and define each template source using html as keyword. For some reason, I have to define customer col separately and...

I am not sure what I am doing wrong... ``` function make_minify_version(file_name,input_dir,output_dir) dim command, shell command = "%comspec% /c html-minifier " & _ " --input-dir """ & input_dir & """...

Minifying the following JavaScript code ````javascript "use strict"; function test() { for(let i = 0; i < arguments.length; i++) { console.log("Argument " + i + " : " + arguments[i]);...

Commit and push Merge approved

A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 via the candidate variable in htmlminifier.js. The ReDoS vulnerability can be mitigated with several best practices...

I'm trying to pass [Clean CSS](https://github.com/clean-css/clean-css#formatting-options) options via the `minifyCSS` property, according to the [docs](https://github.com/clean-css/clean-css#formatting-options), I should be able to pass: ```js minifyCSS: { format: { semicolonAfterLastProperty: false } }...

My attribute has ES6 template value: ``` style="width:${Width};" ``` After minifying it becomes ``` style=width:{} ``` I don't see an option to change this, seems like html-minifier is evaluating that...

When running MEND we see this [CVE-2022-37620](https://vuln.whitesourcesoftware.com/vulnerability/CVE-2022-37620) https://nvd.nist.gov/vuln/detail/CVE-2022-37620 Seems like A Regular Expression Denial of Service (ReDoS) flaw tnx for any help

recently there some good javascript minifier comapre to `uglify-js` like `swc` and `esbuild` it would be good if `uglify-js` is option out or can be a parameter as minifier. reference...

_(comment edited for clarity)_ Hi, **My issue:** space getting removed from between spans if span contains **To reproduce:** https://kangax.github.io/html-minifier/ with only Collapse-Whitespace and HTML5 selected ` ` -> space doesn't...