Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 374 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 374 Bytes

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