tcoopman/image-webpack-loader

Generating both WEBP and not-WEBP images

開放

#179 建立於 2019年2月5日

 (5 則留言) (2 個反應) (0 位負責人)JavaScript (147 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (2,037 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南