0

So, I use CSS Modules webpack loader:

css?modules&importLoaders=1&localIdentName=[path]_[name]_[local]_[hash:base64:5]

I want to compile each styleName property to not only the generic class name usually generated but also to another simpler class.

for example: the code

<div styleName="CLASS-NAME" />

now compiles to

<div class="path_filename_CLASS-NAME_12345" />

and i want it to compile to

<div class="_CLASS-NAME path_filename_CLASS-NAME_12345" />

Vitali Zaidman
  • 899
  • 1
  • 9
  • 24
  • Why would you want something like this? What's the purpose? – David Gomez Nov 01 '16 at 14:30
  • testing. targeting items using their class names. there is a complex outside testing system in the company i work with where the qa team is using class names to target elements. – Vitali Zaidman Nov 01 '16 at 14:33

0 Answers0