OnBoard-Live/stream/tiling-frontend/vite.config.ts
2024-07-26 08:54:39 -07:00

18 lines
372 B
TypeScript

import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { viteSingleFile } from 'vite-plugin-singlefile';
export default defineConfig(({ command }) => ({
plugins: [
svelte({
/* plugin options */
}),
command === 'build' &&
viteSingleFile({
removeViteModuleLoader: true
})
],
build: {
minify: true
}
}));