vite-plugin-webp-compress

A Vite plugin for compressing and converting images to WebP format during the build process.
12,035 1
Install
npm install vite-plugin-webp-compress
Latest Version:1.1.4
Vue:3
License:MIT
Last Updated:Sep 26, 2023
Links: GitHub  ·  npm
Maintainer: filway

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.

Related Packages

webpack-vite-serve

为webpack项目提供一键接入Vite的能力

848 15
vite-plugin-vue-template-inspector

Vite/Webpack plugin: Alt+click Vue template elements to copy the source path or...

778 0
@frontman-ai/vite

Vite integration for Frontman - AI-powered development tools

21,987 719
dom-to-code

navigate to the code through the dom

2,811 168
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

257,315,514 686

Version History

Version Released Vue License
1.1.4 ^3.3.4 MIT
1.1.3 ^3.3.4 MIT