Mi vite.config.ts es:
import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], publicDir: './src/assets', build: { lib: { entry: './src/main.tsx', name: 'index', fileName: 'index', formats: ['iife'] } }, server: { host: true } });¿Cómo puedo ejecutar el script de producción y css automáticamente en un índice html?
como lo hace webpack con html-webpack-plugin.
Soy nuevo en vite (y en webpack también jaja) y al menos no pude encontrar ninguna configuración que me permitiera hacer algo así, ¿hay alguna manera de hacerlo?
espero me puedan ayudar c: