vite-plugin-webp-compress
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

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.

Package Sidebar

Install

npm i vite-plugin-webp-compress

Weekly Downloads

35

Version

1.1.4

License

MIT

Unpacked Size

10.5 kB

Total Files

7

Last publish

Collaborators

  • filway