Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

354
Vistas
Include CSS in a single JS file from Vite, for use in single-spa

I'm prototyping a single-spa which contains Vue apps built with Vite, following the very helpful example.

I've got vite build to generate a single js file that single-spa can point to, and that's being loaded fine.

However vite build always separates out the CSS into a separate CSS file. Ideally for use in single-spa it would be bundled within the same JS file. What's the optimal way to do this?

I can load this using the single-spa-css package, but I was expecting some rollup or vite.config.js option to achieve this.

Thank you!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda