css-loader icon indicating copy to clipboard operation
css-loader copied to clipboard

How to add a class namespace in localIdentName

Open monish001 opened this issue 10 years ago • 1 comments

Is it possible to add a given class namespace to all the classes?

For example, Input class

class1 {
  ...
}

Expected loader output

.app-wrapper class1__hash1 {
  ...
}

I tried following syntax but this did not work. Is there anyway to achieve the above? style-loader!css-loader?modules&localIdentName=.app-wrapper [local]__[hash:base64:5]

monish001 avatar Oct 14 '16 10:10 monish001

Issues are for feature requests & bugs. All support requests / questions should be done in either the Webpack Gitter or in Stack Overflow w/ the webpack tag

joshwiens avatar Jan 20 '17 15:01 joshwiens