pianello-web-app/frontend/svelte.config.js

22 lines
418 B
JavaScript

import adapter from "@sveltejs/adapter-node";
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @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;