-I 后是当前图片的路径目录
-O 后是 输出的webp目录
npx webp-batch-convert -I images -O images_webp
npx webp-batch-convert -I icon -O icon_webp
在 assets 目录内 执行上面的命令 直接转换
-I 后是当前图片的路径目录
-O 后是 输出的webp目录
npx webp-batch-convert -I images -O images_webp
npx webp-batch-convert -I icon -O icon_webp
在 assets 目录内 执行上面的命令 直接转换