Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

266
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!