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

265
Visualizações
webpack: css loader LocalIdentName without css module

I'm working on a react project boilerplate to get started.
my teammate said that it would be cool to have the name of the component and path of it in CSS class names that we define. it would be easier to find and locate the component for debugging he said.
something like: (src/components/shared/post.tsx)

.test {
    ...
}
<div className="test">...</div>

and the result be:

.shared__post__test {
    ...
}
<div className="shared__post__">...</div>

I'm aware that this kind of behavior is implemented in "CSS Modules" with "localIdentName", But We said that we wouldn't use it in this project.

I've searched for an alternative but didn't come by anything.

do you have any suggestions on how I can achieve this?

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