Strip PWA to favicon only: remove icons, SW, workbox, shortcuts, display_override
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
"nelmio/security-bundle": "^3.9",
|
||||
"phpdocumentor/reflection-docblock": "^6.0",
|
||||
"phpstan/phpdoc-parser": "^2.3",
|
||||
"spomky-labs/pwa-bundle": "^1.5",
|
||||
"spomky-labs/pwa-bundle": "1.5.0",
|
||||
"stevenmaguire/oauth2-keycloak": "^6.1",
|
||||
"stripe/stripe-php": "*",
|
||||
"symfony/amazon-mailer": "8.0.*",
|
||||
|
||||
@@ -8,53 +8,15 @@ pwa:
|
||||
start_url: /
|
||||
scope: /
|
||||
display: standalone
|
||||
display_override:
|
||||
- standalone
|
||||
- window-controls-overlay
|
||||
orientation: portrait
|
||||
background_color: '#fbfbfb'
|
||||
theme_color: '#fabf04'
|
||||
lang: fr
|
||||
dir: ltr
|
||||
categories:
|
||||
- business
|
||||
- entertainment
|
||||
- events
|
||||
icons:
|
||||
- src: '%kernel.project_dir%/public/favicon.png'
|
||||
purpose: any
|
||||
- src: '%kernel.project_dir%/public/favicon.png'
|
||||
purpose: maskable
|
||||
serviceworker:
|
||||
enabled: true
|
||||
src: '%kernel.project_dir%/public/sw.js'
|
||||
dest: /sw.js
|
||||
scope: /
|
||||
use_cache: false
|
||||
skip_waiting: true
|
||||
workbox:
|
||||
navigation_preload: true
|
||||
cache_manifest: true
|
||||
image_cache:
|
||||
enabled: true
|
||||
max_age: 2592000
|
||||
max_entries: 200
|
||||
regex: '/\.(png|jpe?g|svg|webp)$/'
|
||||
font_cache:
|
||||
enabled: true
|
||||
max_entries: 10
|
||||
max_age: 2592000
|
||||
asset_cache:
|
||||
enabled: true
|
||||
regex: '/\.(css|jsx?)$/'
|
||||
favicons:
|
||||
enabled: true
|
||||
default:
|
||||
src: '%kernel.project_dir%/public/favicon.png'
|
||||
background_color: '#fbfbfb'
|
||||
border_radius: 18
|
||||
image_scale: 80
|
||||
safari_pinned_tab_color: '#fabf04'
|
||||
tile_color: '#fabf04'
|
||||
use_silhouette: false
|
||||
low_resolution: false
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
{{ pwa(injectThemeColor: true, injectFavicons: true, injectSW: true, swAttributes: {nonce: csp_nonce('script')}, injectResourceHints: true, injectSpeculationRules: true) }}
|
||||
{{ pwa(injectThemeColor: true, injectFavicons: true, injectSW: false) }}
|
||||
{% block meta %}
|
||||
<meta name="description" content="{% block description %}E-Ticket - Plateforme de vente de tickets evenementiels pour associations{% endblock %}">
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user