Browse Source

feat: enable PWA

via vite-plugin-pwa for simple configuration
master
DanConwayDev 2 years ago
parent
commit
342b0036e5
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 1
      package.json
  2. 3
      vite.config.ts
  3. 992
      yarn.lock

1
package.json

@ -57,6 +57,7 @@ @@ -57,6 +57,7 @@
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.2.0",
"vite-plugin-pwa": "^0.19.8",
"vitest": "^1.2.2"
},
"type": "module",

3
vite.config.ts

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
import { sveltekit } from '@sveltejs/kit/vite'
import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'
export default defineConfig({
plugins: [sveltekit()],
plugins: [sveltekit(), VitePWA()],
})

992
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save