29 lines
670 B
TypeScript
29 lines
670 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
import Icons from 'unplugin-icons/vite';
|
|
import viteLittleFS from './vite-plugin-littlefs';
|
|
import EnvCaster from '@niku/vite-env-caster';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sveltekit(),
|
|
Icons({
|
|
compiler: 'svelte'
|
|
}),
|
|
viteLittleFS(),
|
|
EnvCaster()
|
|
],
|
|
test: {
|
|
include: ['src/**/*.{test,spec}.{js,ts}']
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://spot-micro.local/',
|
|
changeOrigin: true,
|
|
ws: true
|
|
}
|
|
}
|
|
}
|
|
});
|