fix(frontend): move vite file to TS

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-02-15 22:20:23 +01:00 committed by Gitea
parent b6d39ff2e0
commit 122996f08d

View file

@ -1,8 +1,8 @@
import { optimizeCss } from 'carbon-preprocess-svelte';
import { sveltekit } from '@sveltejs/kit/vite';
/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()],
const config: import('vite').UserConfig = {
plugins: [sveltekit(), process.env.NODE_ENV === 'production' && optimizeCss()],
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
},
@ -11,6 +11,9 @@ const config = {
'/api': 'http://localhost:3008',
'/swagger': 'http://localhost:3008'
}
},
build: {
sourcemap: true
}
};