Compare commits

..

2 commits

Author SHA1 Message Date
444c64b55c Add vitepwa
All checks were successful
ci/woodpecker/push/build Pipeline was successful
2023-07-18 17:03:59 +02:00
52edee7ab6 add vite-plugin-pwa 2023-07-18 17:03:55 +02:00
3 changed files with 2234 additions and 14 deletions

View file

@ -25,7 +25,8 @@
"svelte-check": "^3.4.6", "svelte-check": "^3.4.6",
"tslib": "^2.4.1", "tslib": "^2.4.1",
"typescript": "^5.0.0", "typescript": "^5.0.0",
"vite": "^4.4.4" "vite": "^4.4.4",
"vite-plugin-pwa": "^0.16.4"
}, },
"type": "module", "type": "module",
"dependencies": { "dependencies": {

View file

@ -1,8 +1,9 @@
import { sveltekit } from "@sveltejs/kit/vite"; import { sveltekit } from "@sveltejs/kit/vite";
import adapter from "@sveltejs/adapter-node"; import adapter from "@sveltejs/adapter-node";
import { VitePWA } from 'vite-plugin-pwa';
const config = { const config = {
plugins: [sveltekit()], plugins: [sveltekit(), VitePWA({ registerType: 'autoUpdate' })],
test: { test: {
include: ["src/**/*.{test,spec}.{js,ts}"], include: ["src/**/*.{test,spec}.{js,ts}"],
}, },

File diff suppressed because it is too large Load diff