vb-pwa-splashscreen
Creates PNG splash screens and a links.html
file from the given SVG file. This task is typically used to overwrite the default Visual Builder splash screens with a custom splash screen.
The resources are generated into the sources of the specified visual web application, specifically into the resources/splashscreens
directory.
The generated resources:
- a set of PNG files for each iOS device screen size
- a
links.html
file. This file is a template that's used to inject links to the splash screen into theindex.html
file of the built web application
You provide the path to the specific application where you want the assets generated as the task target (in the following example, webApps/myApp
is the path to the application):
grunt vb-pwa-splashscreens:webApps/myApp --svg=mysplash.svg
It's possible to configure the underlying package by specifying pwa-asset-generator
properties, for example, to specify a background color (see https://www.npmjs.com/package/pwa-asset-generator):
grunt vb-pwa-splashscreens:webApps/myApp --svg=mysplash.svg --pwa-asset-generator:background=yellow
Details
Detail | Description |
---|---|
subtasks | n/a |
multitask | n/a |
hooks | n/a |
input | path to SVG file |
output | ${sources}webApps/<appid> |
Build Options
Name | Mandatory | Default Value | Description |
---|---|---|---|
target | n/a | build | Name of build directory |
git-sources | n/a | check | Location of sources of the visual application |
svg | Yes | n/a | Path to SVG file |
pwa-asset-generator | n/a | n/a |
Properties to pass to pwa-asset-generator config For a list of possible options, see: https://www.npmjs.com/package/pwa-asset-generator |