JSPM

vite-plugin-webp-compress

1.1.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 250
  • Score
    100M100P100Q99460F
  • License MIT

A Vite plugin for compressing and converting images to WebP format during the build process.

Package Exports

  • vite-plugin-webp-compress
  • vite-plugin-webp-compress/dist/index.d.mts
  • vite-plugin-webp-compress/dist/index.d.ts
  • vite-plugin-webp-compress/dist/index.js
  • vite-plugin-webp-compress/dist/index.mjs
  • vite-plugin-webp-compress/package.json

Readme

Vite Plugin WebP Compress

A Vite plugin for compressing and converting JPG and PNG images to WebP format during the build process.

Installation

Install the plugin via npm, yarn, or pnpm:

npm install vite-plugin-webp-compress --save-dev
# or
yarn add vite-plugin-webp-compress --dev
# or
pnpm add vite-plugin-webp-compress -D

Usage

Add the plugin to your Vite config:

import VitePluginWebpCompress from 'vite-plugin-webp-compress';

export default {
  plugins: [
    VitePluginWebpCompress()
  ]
}

Options

This plugin currently doesn't have any configurable options.