29 lines
No EOL
560 B
TypeScript
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; |