3 ms·
grep -R .class-name ./assets/css/wherever Or use your IDE's project search? In vscode you can just ctrl-click on the class and it should find it? IT IS NOT DI
by ehutch79 3y ago
grep -R .class-name ./assets/css/wherever
Or use your IDE's project search? In vscode you can just ctrl-click on the class and it should find it?
IT IS NOT DIFFICULT
- yurishimo 3y agoUntil you discover that one feature in production that is built with dynamically concatenated class names and the SCSS file is deeply nested to hell and back so your search didn’t find `card__${cardType}__inner—-${userPrefColor}-background` Ask me how I know!
- ehutch79 3y agoThat doesn't sound like something any tooling should be supporting. I've done that before, and everyone who does regrets it. It should be a linting error, not something we need to re-write searching to support.
- cqqxo4zV46cp 3y agoWhat do you honestly expect someone to reply to this comment? Yes, and? Developers tend to do bad things sometimes. It happens. That’s the reality.