25 lines
604 B
JavaScript
25 lines
604 B
JavaScript
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { viteSingleFile } from 'vite-plugin-singlefile'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
svelte(),
|
|
tailwindcss(),
|
|
viteSingleFile({
|
|
removeViteModuleLoader: true,
|
|
}),
|
|
],
|
|
// Resolve the W: subst drive to avoid path mismatches on Windows
|
|
resolve: {
|
|
preserveSymlinks: true,
|
|
},
|
|
build: {
|
|
// Ensure everything goes into a single chunk
|
|
cssCodeSplit: false,
|
|
assetsInlineLimit: 100000,
|
|
},
|
|
})
|