🏗️」 wip: working vite + tailwinds

This commit is contained in:
2025-07-10 16:18:33 +02:00
parent 1c8a0cc986
commit 94644f0671
9 changed files with 278 additions and 220 deletions

23
vite.config.js Normal file
View File

@ -0,0 +1,23 @@
import { dirname, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
const __dirname = dirname(fileURLToPath(import.meta.url))
export default defineConfig({
plugins: [
tailwindcss()
],
root: resolve(__dirname, 'src/front'),
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'src/front/index.html'),
},
},
outDir: resolve(__dirname, 'dist'),
emptyOutDir: true,
}
})