mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-24 17:53:47 +00:00
20 lines
450 B
TypeScript
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;
|