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

264
Vistas
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 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