astro-minify-html
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

astro-minify-html

This Astro integration minifies your static HTML output using html-minifier-terser on build time.

Installation

Install the integration using your preferred package manager.

astro add

npx astro add astro-minify-html

Manually

npm install -D astro-minify-html
// astro.config.
import { minifyHtml } from "astro-minify-html"

export default defineConfig({
  integrations: [minifyHtml()],
})

Options

Refer to the html-minifier-terser documentation for available options.

export default defineConfig({
  integrations: [htmlMinifier({ removeComments: true })],
})

Package Sidebar

Install

npm i astro-minify-html

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

3.96 kB

Total Files

5

Last publish

Collaborators

  • leoortizz