- aggiornamento con proj RISO. postcss, pwa.

This commit is contained in:
Surya Paolo
2025-03-05 18:14:00 +01:00
parent 5aa794ef18
commit 5c38bbd52e
340 changed files with 7203259 additions and 923 deletions

View File

@@ -5,14 +5,23 @@
import { register } from 'register-service-worker'
register(import.meta.env.VITE_SERVICE_WORKER_FILE ? import.meta.env.VITE_SERVICE_WORKER_FILE : '', {
console.log('SWFILE: ', process.env.VITE_SERVICE_WORKER_FILE);
register(process.env.VITE_SERVICE_WORKER_FILE, {
scope: '/',
/************* ✨ Codeium Command ⭐ *************/
/**
* When the app has finished populating the caches and the service worker has taken control of the page,
* this callback will be triggered. It's a good place to do something with the registration such as post a message
* to the waiting service worker, or add an event listener for future push events.
*/
/****** 37dbd402-a66f-4a9b-9ead-63e4617559c1 *******/
ready() {
console.log('READY::: App is being served from cache by a service worker ' + import.meta.env.VITE_SERVICE_WORKER_FILE)
},
registered(registration) { // registration -> a ServiceWorkerRegistration instance
console.log('REGISTERED::: !!!', import.meta.env.VITE_SERVICE_WORKER_FILE)
console.log('REGISTERED::: !!!', process.env.VITE_SERVICE_WORKER_FILE)
},
cached(registration) {
console.log('CACHED::: Content has been cached for offline use.')