1.0.1 • Published 10 months ago

@jcayzac/astro-minify-html v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@jcayzac/astro-minify-html

Minifies Astro's generated HTML, including inline scripts & styles.

license npm version npm downloads bundle

Installation

# pnpm
pnpm add @jcayzac/astro-minify-html

# bun
bunx add @jcayzac/astro-minify-html

# npm
npx add @jcayzac/astro-minify-html

# yarn
yarn add @jcayzac/astro-minify-html

# deno
deno add npm:@jcayzac/astro-minify-html

Usage

Add the integration to your configuration file:

import minifyHtml from '@jcayzac/astro-minify-html'
import { defineConfig } from 'astro/config'

export default defineConfig({
  integrations: [
    minifyHtml(),
  ],
  // …other options
})

Like it? Buy me a coffee!

If you like anything here, consider buying me a coffee using one of the following platforms:

GitHub Sponsors Revolut Wise Ko-Fi PayPal