@frontendista/html-minifier-terser
v0.2.2
Published
HTML minifier that uses LightningCSS and ESBuild
Downloads
185
Readme
@frontendista/html-minifier-terser
HTML minifier that uses LightningCSS and ESBuild for minification.
Installation
pnpm install @frontendista/html-minifier-terser
Usage
import { Minifier } from "@frontendista/html-minifier-terser"
const minifier = new Minifier()
.withHTMLOptions({
// Override the default Terser options.
})
.withCSSOptions({
// Override the default LightningCSS options.
});
.withJSOptions({
// Override the default ESBuild options.
});
const minifiedHTML = minifier.minify("")