Bundle Installation
composer require spomky-labs/pwa-bundlepwa: ~<!DOCTYPE html>
<html lang="en">
<head>
{{ pwa() }}
</head>
<body>
...
</body>
</html>Twig Function Options
{{ pwa(
injectThemeColor: true,
injectFavicons: true,
injectSW: true,
swAttributes: {},
locale: null,
injectResourceHints: true,
injectSpeculationRules: true
) }}Parameter
Type
Default
Description
Example: Disable Resource Hints
Example: Localized Manifest
Last updated
Was this helpful?