I have the following rule in my webpack.confg
use: [
{
loader: 'css-loader',
query: {
modules: true,
sourceMap: true,
importLoaders: 2,
localIdentName: '[name]__[local]___[hash:base64:5]'
}
},
'sass-loader'
]
This works but my file names are upper case, e.g. Label.scss
Which means my class names come out as Label__whatever__DRfgZ
for example.
Is there anyway to lowercase first part of the class that comes from the file name?