7

I'm brand new to Webpack and have been playing around with the css-loader. On the Github page under "Local Scope" there's information about specifying a localIdentName query tag with your own custom values like: [path][name]---[local]---[hash:base64:5]. This tag allows us to specify how the class should be named after being processed.

Is it possible for us to define our own custom value placeholders for this query tag i.e. css-loader?localIdentName=[MyCustomMethod]-[hash:base64:5]?

n1313
  • 20,555
  • 7
  • 31
  • 46
Benjamin Solum
  • 2,281
  • 18
  • 29

1 Answers1

2

I don't think it is possible to put an arbitrary custom token there, but the documentation for loader-utils (which is used by css-loader) lists a number of other useful predefined tokens such as [folder] or [emoji]. Maybe they'll do?

n1313
  • 20,555
  • 7
  • 31
  • 46