pianello-web-app/frontend/vite.config.ts

49 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-07-10 18:37:41 +02:00
import { sveltekit } from "@sveltejs/kit/vite";
import adapter from "@sveltejs/adapter-node";
2023-07-18 18:34:53 +02:00
import { SvelteKitPWA } from '@vite-pwa/sveltekit'
2023-07-10 17:44:06 +02:00
2023-07-10 18:37:41 +02:00
const config = {
2023-07-18 18:26:39 +02:00
plugins: [
sveltekit(),
2023-07-19 15:18:48 +02:00
SvelteKitPWA({
registerType: 'autoUpdate',
2023-07-19 15:39:01 +02:00
strategies: 'generateSW',
manifest: {
start_url: '/',
background_color: "#213c8b",
theme_color: "#de0e1b",
name: "PianelloExperience",
display: "fullscreen",
short_name: "PianelloExperience",
description: "Pianello Experience",
icons: [
{
src: "/images/app-icon-512x512.png",
sizes: "512x512",
type: "image/png",
},
{
src: "/images/app-icon-192x192.png",
sizes: "192x192",
type: "image/png",
},
],
},
2023-07-19 15:18:48 +02:00
})
2023-07-18 18:26:39 +02:00
],
2023-07-10 18:37:41 +02:00
test: {
include: ["src/**/*.{test,spec}.{js,ts}"],
},
build: {
minify: "esbuild",
target: "esnext",
},
kit: {
adapter: adapter({
precompress: false,
})
},
};
2023-07-19 15:02:38 +02:00
export default config;