0.1.1 • Published 1 year ago

astro-minify-html v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 })],
})
0.1.0

1 year ago

0.0.1

1 year ago

0.1.1

1 year ago

0.0.0

1 year ago