From acf7ecb22fa8aa0ac0455b31c5882ff7dabbcf21 Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Tue, 28 Oct 2025 16:18:42 +0100 Subject: [PATCH] Add PWA configuration files for SpomkyLabs PwaBundle (#1873) --- .../pwa-bundle/1.3/config/packages/pwa.yaml | 5 ++++ spomky-labs/pwa-bundle/1.3/manifest.json | 26 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 spomky-labs/pwa-bundle/1.3/config/packages/pwa.yaml create mode 100644 spomky-labs/pwa-bundle/1.3/manifest.json diff --git a/spomky-labs/pwa-bundle/1.3/config/packages/pwa.yaml b/spomky-labs/pwa-bundle/1.3/config/packages/pwa.yaml new file mode 100644 index 00000000..d3a72081 --- /dev/null +++ b/spomky-labs/pwa-bundle/1.3/config/packages/pwa.yaml @@ -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' diff --git a/spomky-labs/pwa-bundle/1.3/manifest.json b/spomky-labs/pwa-bundle/1.3/manifest.json new file mode 100644 index 00000000..9a41d1c2 --- /dev/null +++ b/spomky-labs/pwa-bundle/1.3/manifest.json @@ -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": "", + "warn_if_missing": true + } + ], + "gitignore": [ + "/public/idb", + "/public/pwa", + "/public/workbox", + "/public/favicon.ico", + "/public/site.webmanifest", + "/public/site.*.webmanifest", + "/public/sw.js" + ] +}