0.1.5 • Published 5 months ago
astro-minify-html-swc v0.1.5
astro-minify-html-swc
An Astro integration that minifies HTML (including inline scripts and styles) using SWC. It's fast!. 🚀
Installation
npm install astro-minify-html-swc
# or
pnpm add astro-minify-html-swc
# or
yarn add astro-minify-html-swc
Usage
// astro.config.mjs
import minify from 'astro-minify-html-swc'
import { defineConfig } from 'astro/config'
export default defineConfig({
integrations: [minify()],
})
Make sure to put the integration at the end of the integrations
array.
License
MIT