pianello-web-app/frontend/vite.config.ts
Alessio Davoli 444c64b55c
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Add vitepwa
2023-07-18 17:03:59 +02:00

21 lines
442 B
TypeScript

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