pianello-web-app/frontend/vite.config.ts
Alessio Davoli 095c26eaad
Some checks failed
ci/woodpecker/push/build Pipeline failed
Auto update service worker
2023-07-18 18:35:43 +02:00

29 lines
No EOL
560 B
TypeScript

import { sveltekit } from "@sveltejs/kit/vite";
import adapter from "@sveltejs/adapter-node";
import { SvelteKitPWA } from '@vite-pwa/sveltekit'
const config = {
plugins: [
sveltekit(),
SvelteKitPWA({
registerType: 'autoUpdate',
strategies: 'injectManifest',
srcDir: 'src',
filename: 'sw.ts',
})
],
test: {
include: ["src/**/*.{test,spec}.{js,ts}"],
},
build: {
minify: "esbuild",
target: "esnext",
},
kit: {
adapter: adapter({
precompress: false,
})
},
};
export default config;