This PR adds iconify api fetch interception to avoid make requests to iconify api server serving collections from local.
EDIT: icones is using prompt for update, this PR also updates it to use auto update, but we should use virtual module instead registerSW script (not included in the PR, ping me if you want to include it).
Linked Issues
closes #135
Additional context
iconify-icon provides also a way to disable local storage: I've included the required logic to disable it when using PWA:
added script to run dev server with PWA: it works also on dev server
added PWA to vite.define to allow use local storage when running dev server without PWA (current behavior)
Description
This PR adds iconify api fetch interception to avoid make requests to iconify api server serving collections from local.
EDIT: icones is using prompt for update, this PR also updates it to use auto update, but we should use virtual module instead
registerSW
script (not included in the PR, ping me if you want to include it).Linked Issues
closes #135
Additional context
iconify-icon
provides also a way to disable local storage: I've included the required logic to disable it when using PWA:PWA
tovite.define
to allow use local storage when running dev server without PWA (current behavior)