Skip to content

fisker/vite-plugin-image-minify

Repository files navigation

vite-plugin-image-minify

Build Status Coverage Npm Version MIT License

Vite plugin to minify images.

Install

yarn add vite-plugin-image-minify --dev

Usage

Add vite-plugin-image-minify to your Vite config file.

import vitePluginImageMinify from 'vite-plugin-image-minify'

export default {
  plugins: [
    vitePluginImageMinify(),
  ],
},