Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.15 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.15 KB

✨ unplugin-compress-svga

📦 Install

npm add @yuanjianming/unplugin-compress-svga -D

💪 Basic Use

  • vite.config.ts
import { defineConfig } from 'vite'
import compressSvga from '@yuanjianming/unplugin-compress-svga/vite'
export default defineConfig({
    //....
    plugins: [compressSvga({
      //   https://sharp.pixelplumbing.com/api-output#png
    })],
})

💪 Default Config

  //   https://sharp.pixelplumbing.com/api-output#png
{
            quality: 70,
            palette: true,       
}