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]?

1 Answer 1

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?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.