pianello-web-app/frontend/vite.config.ts
Alessio Davoli ba2a25f088
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Add lang it
2023-07-19 16:40:56 +02:00

50 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({
workbox: {
globPatterns: ['**/*.{js,ts,css,html}'],
},
manifest: {
start_url: '/',
background_color: "#213c8b",
theme_color: "#de0e1b",
lang: 'it',
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;