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'),
    },
  },
})
