Add PWA configuration files for SpomkyLabs PwaBundle (#1873)

This commit is contained in:
Florent Morselli
2025-10-28 16:18:42 +01:00
committed by GitHub
parent 63763e3e49
commit acf7ecb22f
2 changed files with 31 additions and 0 deletions

View 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'

View 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"
]
}