Alessio Davoli
203d503ef1
All checks were successful
ci/woodpecker/push/build Pipeline was successful
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
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: '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",
|
|
},
|
|
],
|
|
},
|
|
})
|
|
],
|
|
test: {
|
|
include: ["src/**/*.{test,spec}.{js,ts}"],
|
|
},
|
|
build: {
|
|
minify: "esbuild",
|
|
target: "esnext",
|
|
},
|
|
kit: {
|
|
adapter: adapter({
|
|
precompress: false,
|
|
})
|
|
},
|
|
};
|
|
|
|
export default config;
|