vite-unplugin-imagemin
v1.0.2
Published
A vite png compressed plugin
Downloads
2
Readme
vite-unplugin-imagemin
A vite png compressed plugin
Install (yarn or npm)
node version: >=12.0.0
vite version: >=2.0.0
npm i vite-unplugin-imagemin -D
Usage
- Configuration plugin in vite.config.ts
import viteImagemin from "vite-unplugin-imagemin";
export default () => {
return {
plugins: [viteImagemin({ dirs: "./dist/build" })],
};
};
Options
| params | type | default | default |
| ------ | -------- | ------- | ------------ |
| dirs | string
| - | build folder |