mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2025-12-06 09:13:41 -05:00
18 lines
372 B
TypeScript
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
|
|
}
|
|
}));
|