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.
28 lines
761 B
28 lines
761 B
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({
|
|
base: './',
|
|
// Solo un fichero
|
|
plugins: [svelte(),tailwindcss(),viteSingleFile()],
|
|
//plugins: [svelte(),tailwindcss()],
|
|
css: {
|
|
//transformer: 'lightningcss'
|
|
},
|
|
assetsInclude: ['**/*.otf', '**/*.woff', '**/*.woff2'],
|
|
build: {
|
|
cssCodeSplit: false,
|
|
assetsInlineLimit: 100000000, // Inline todo
|
|
rollupOptions: {
|
|
output: {
|
|
inlineDynamicImports: true,
|
|
manualChunks: undefined
|
|
}
|
|
}
|
|
}
|
|
})
|