tcoopman/image-webpack-loader

Generating both WEBP and not-WEBP images

Open

#179 ouverte le 5 févr. 2019

Voir sur GitHub
 (5 commentaires) (2 réactions) (0 assignés)JavaScript (147 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (2 037 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur