You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ebrosa/vite.config.ts

28 lines
689 B

/* vite.config.js */
1 year ago
import {defineConfig} from 'vite'
import tailwindcss from "@tailwindcss/vite";
import {svelte} from '@sveltejs/vite-plugin-svelte';
import {viteSingleFile} from "vite-plugin-singlefile";
1 year ago
export default defineConfig({
base: './',
plugins: [svelte(),tailwindcss(),viteSingleFile()],
css: {
//transformer: 'lightningcss'
},
assetsInclude: ['**/*.otf', '**/*.woff', '**/*.woff2'],
1 year ago
build: {
cssCodeSplit: false,
assetsInlineLimit: 100000000, // Inline todo
1 year ago
rollupOptions: {
output: {
inlineDynamicImports: true,
manualChunks: undefined
}
}
}
})

Powered by TurnKey Linux.