@frontendista/html-minifier-terser
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

@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("")

Readme

Keywords

none

Package Sidebar

Install

npm i @frontendista/html-minifier-terser

Weekly Downloads

4

Version

0.2.2

License

MIT

Unpacked Size

6.12 kB

Total Files

5

Last publish

Collaborators

  • pavelsusicky