mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-21 23:23:45 +00:00
fix(frontend): move vite file to TS
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
b6d39ff2e0
commit
122996f08d
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in a new issue