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

116
Vistas
Webpack css conflicts

I have monorepo under lerna that contains modules dependent one to another.

I have Text module that has import of css file in index.ts like:

import './text.css'

I have Button module that uses Text as dependency

And I have external application that use both of them.

Issue: When webpack build html it put all css in <head> so for example if button use Text v1.1.1 and my application use Text v2.2.2 one of them will override another... Can I say to webpack, when you add css as <style> tag wrap it with some class like:

.button {
   /// put here css that comes from `Text` element under the `Button`
}

or may be if someone know other solutions for my issue? Thanks

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