Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
¿Cómo inyectar script de producción y css en un índice html con vite?

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:

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!