Represents the configuration of a web manifest file.
You pass your Pages.Manifest.Config
record into the Pages.application
function
(from your generated Pages.elm
file).
import Pages.Manifest as Manifest
import Pages.Manifest.Category
manifest : Manifest.Config
manifest =
Manifest.init
{ name = static.siteName
, description = "elm-pages - " ++ tagline
, startUrl = Route.Index {} |> Route.toPath
, icons =
[ icon webp 192
, icon webp 512
, icon MimeType.Png 192
, icon MimeType.Png 512
]
}
|> Manifest.withShortName "elm-pages"
Setup a minimal Manifest.Config. You can then use the with...
builder functions to set additional options.
A generator for Api.elm to include a manifest.json.
Pages.elm
) Feel free to use this, but in 99% of cases you won't need it. The generated
code will run this for you to generate your manifest.json
file automatically!
Represents a web app manifest file (see above for how to use it).