tcoopman/image-webpack-loader

Generating both WEBP and not-WEBP images

Open

#179 创建于 2019年2月5日

在 GitHub 查看
 (5 评论) (2 反应) (0 负责人)JavaScript (2,037 star) (147 fork)batch import
enhancementhelp wanted

描述

I want to use WEBP images, but I'd like to fallback them to PNG, JPEG or whatever file extension it is. So I need both versions of each file, but I'm not being able to make image-webpack-loader or webpack itself to save that way. Neither searching for a way (maybe I'm using the wrong search terms?).

All I need is two different files, one converted to WEBP, and the other just optimized.

Is there any way to do this?

Thanks for the help

贡献者指南