This preset adds the possibility to automatically generate your favicons in multiple formats, as well as your webapp manifest.json.
Following props are exposed to be used in the wingsuit.config.yml:
Prop
Type
Desc
logo
{string | default: './source/favicon-src.png'}
Path to your source logo. Logo can be either png or svg
prefix
{string | default: 'images/favicons/'}
Prefix which gets injected into your webapp.html
publicPath
{string | default: 'images/favicons/'}
Destination of your favicons (will mostly be the same as your prefix)
Out of the box the preset will generate multiple formats of your favicons and your manifest.jsononly when running a production build of drupal.
It will look for a favicon-src.png in your source folder. The generated files will be placed into /dist/[app]/images/favicons by default. You have, however, the possibility to modify all of this by using a special pwa object within the paremeters object in your wingsuit.config.js.
This preset adds the possibility to automatically generate your favicons in multiple formats, as well as your webapp
manifest.json
. Following props are exposed to be used in the wingsuit.config.yml:prefix
)Example configuration:
Out of the box the preset will generate multiple formats of your favicons and your
manifest.json
only when running a production build of drupal. It will look for afavicon-src.png
in yoursource
folder. The generated files will be placed into/dist/[app]/images/favicons
by default. You have, however, the possibility to modify all of this by using a specialpwa
object within theparemeters
object in yourwingsuit.config.js
.