Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

118
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda