convert-to-webp
v1.2.5
Published
A tool to convert images to WebP format and a Vue component to support WebP.
Downloads
9
Maintainers
Readme
#转化图片格式
npm install -g convert-to-webp npx convert-to-webp -s ./src/assets
#WebpImage组件的使用
import { WebpImage } from 'convert-to-webp';
#css的demo 如果是引入a.png.webp
vite.config.ts 配置别名:'~': path.resolve(__dirname, './node_modules'), @import '~/convert-to-webp/src/styles/webp-mixin.scss'; @include webp-background('a', 'png');
查看吧本地版本:npm list convert-to-webp