pianello-web-app/frontend/svelte.config.js
Alessio Davoli 551fe07d0e
Some checks failed
ci/woodpecker/push/build Pipeline failed
Updates on sw.js registering
2023-07-19 20:08:53 +02:00

22 lines
408 B
JavaScript

import adapter from "@sveltejs/adapter-node";
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
files: {
serviceWorker: 'src/sw.ts',
},
serviceWorker: {
register: false,
},
adapter: adapter({
fallback: null,
precompress: true,
strict: true
}),
},
};
export default config;