Skip to content

zhuweiyou/vite-plugin-minify

Repository files navigation

vite-plugin-minify

Minify html in production

Usage

npm install vite-plugin-minify -D
// vite.config.js
import { defineConfig } from 'vite'
import { ViteMinifyPlugin } from 'vite-plugin-minify'

export default defineConfig({
  plugins: [
    // input https://www.npmjs.com/package/html-minifier-terser options
    ViteMinifyPlugin({}),
  ],
})