html-minifier
html-minifier copied to clipboard
Javascript-based HTML compressor/minifier (with Node.js support)
By default all quotes are replaced by `"`. It would be great if a e.g. `keepOriginalQuoting` could be specified to avoid breaking inlining JSON at runtime. **input:** ```ejs ``` **output:**...
I'm using html-minifier to minify all the .html and .json files (in my case they include some html markup) in a directory. Right now it doesn't seem to be possible...
https://github.com/nsisodiya/gatsby-plugin-html-minifier
Presently if the user fires in `html-minifier` without supplying any of the options, nothing is gonna happen. It is good to have the help showing up in that case 🤔
### Before ```js const {minify} = require('html-minifier'); minify('', {collapseBooleanAttributes: true}); //=> '' ``` ### After ```js const {minify} = require('html-minifier'); minify('', {collapseBooleanAttributes: true}); //=> '' ``` ------ ref. specification of...
The tags `ins` and `del` should be in `inlineTextTags`. In markdown, the text `*hi* I ~~hate~~ love cake` becomes `hi I hate love cake`, but when minified that becomes `hi...
Hello, We have some handlebars helpers which add attributs to tags : Which gets broken after minification as (space in the closing triple curly bracket): Even using the **ignoreCustomFragments** option...
Hi, Do you have a set of tweaks/flags/recommendations to support AMP minification? Most existing minifications are fine, but for example the html/head/body tags cannot be removed, and there are some...
Closes: #907 Fixes: #906 Adds callback support to `minify`, `minifyCSS` and `minifyJS` functions. Does not break any existing functionality. ### Example Use: ```js var minify = require('html-minifier').minify; var html =...