mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
Add PWA configuration files for SpomkyLabs PwaBundle (#1873)
This commit is contained in:
5
spomky-labs/pwa-bundle/1.3/config/packages/pwa.yaml
Normal file
5
spomky-labs/pwa-bundle/1.3/config/packages/pwa.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
# Documentation available at https://pwa.spomky-labs.com/
|
||||
## Please add the favicons, manifest or serviceworker sections depending on your needs.
|
||||
pwa:
|
||||
asset_compiler: false # Default to true. Will change to false in 2.0.0.
|
||||
#image_processor: 'pwa.image_processor.imagick' # Or 'pwa.image_processor.gd'
|
||||
26
spomky-labs/pwa-bundle/1.3/manifest.json
Normal file
26
spomky-labs/pwa-bundle/1.3/manifest.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"bundles": {
|
||||
"SpomkyLabs\\PwaBundle\\SpomkyLabsPwaBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%"
|
||||
},
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "templates/base.html.twig",
|
||||
"content": " {{ pwa() }}",
|
||||
"position": "after_target",
|
||||
"target": "</title>",
|
||||
"warn_if_missing": true
|
||||
}
|
||||
],
|
||||
"gitignore": [
|
||||
"/public/idb",
|
||||
"/public/pwa",
|
||||
"/public/workbox",
|
||||
"/public/favicon.ico",
|
||||
"/public/site.webmanifest",
|
||||
"/public/site.*.webmanifest",
|
||||
"/public/sw.js"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user