Closed Ievgen-Lebediev closed 2 years ago
There is no way to specify different sources per platform. A documentation says "an array of sources" but actually it means "output files". The purpose of this parameter is to opt-in to specific sizes of output files. It has nothing to do with inputs.
Probably your best option is to try to use a plug-in twice with different inputs and options.
@andy128k Thank you for your feedback. Could you please tell me if it possible somehow to run this webpack plugin multiple times per build with different configurations for different image sources?
@Ievgen-Lebediev see https://github.com/jantimon/favicons-webpack-plugin/tree/main/example/multiple
Is your feature request related to a problem? Please describe.
My application needs to handle two different *.png files (two different images not only different sizes) for favicon and for touch icons. I did not find the solution for my issue based on the api mentioned at the github pages (both on favicons-webpack-plugin and favicons repos).
Current configuration
Output
All icons are derived from one source
logo: "./src/images/favicon.png"
without taking into account sources identified in theicon
property.Describe the solution you'd like
Is there some way to handle a few differnet images as favicons and touch icons?