Skip to content

leoortizz/astro-minify-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Astro integration to minify HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published