pomme/frontend/vite.config.ts
Sam Therapy 122996f08d fix(frontend): move vite file to TS
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-02-17 19:17:02 +00:00

20 lines
450 B
TypeScript

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