html-minifier-terser
html-minifier-terser copied to clipboard
actively maintained fork of html-minifier - minify HTML, CSS and JS code using terser - supports ES6 code
I keep getting parsing errors when trying to use this on a file with Jquery. Parse Error: < 0 ? this[ num + this.length ] : this[ num ]; Anyone...
In mathml a sequence of closing tags that immediately precede the closing `` element can be omitted. See [w3c Mathml spec discussion](https://github.com/w3c/mathml/issues/375). Since mathml is so verbose, even omitting these...
Hi, `maxLineLength` will split after the `pre code` elements: ```html dig +nostats google.de ``` resulting into: ```html dig +nostats google.de ``` This on the other hand will add an extra...
Would the project be open to a PR to add a progress bar to the CLI to show progress through the set of HTML files to minify? Running on a...
We have a few attributes we use in dev, but are not needed in prod. Any chance a new setting could be created, allowing an array of attributes to be...
I have below tag in my html file: `` When I run `html-minifier-terser -o dist/index.html dist/index.html --remove-comments --collapse-whitespace --minify-js --minify-css` I generates: `` i.e. surrounds onload in single quote. I...
``` const minify = require("html-minifier-terser").minify; console.log( minify( 'Test', { collapseBooleanAttributes: true } ) ); ``` result > `Test` expected result > `Test` Are my expectations incorrect?
In our angular.js based app we have attributes with long expressions which we sometimes spread over multiple lines like this: ``` repeat="role in modal.roles | filter: {displayName: $select.search} track by...
typings
maybe we could merge https://www.npmjs.com/package/@types/html-minifier into this package?