mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
29 lines
601 B
TypeScript
29 lines
601 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { viteStaticCopy } from 'vite-plugin-static-copy'
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss(),
|
|
viteStaticCopy({
|
|
targets: [
|
|
{
|
|
src: '../blueprints/*',
|
|
dest: 'blueprints' // raíz de dist (public root)
|
|
},
|
|
{
|
|
src: '../meta.json',
|
|
dest: '' // raíz de dist
|
|
}
|
|
]
|
|
})
|
|
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
})
|