Closed
Description
- Operating System: MacOS
- Node Version: 10.15.3
- NPM Version: 6.4.1
- webpack Version: 4.39.1
- css-loader Version: 3.1.0
Expected Behavior
In 2.1.0 using this pattern for localIdentName: [name]_[local]_[hash:base64:5]
the name portion would be transformed from file.module
to file-module
. File name is file.module.scss.
Actual Behavior
The .
in file.module
is no longer changed to a -
.
We use babel-plugin-react-css-modules alongside css-loader. The babel plugin still transforms filenames in the same way the CSS Loader 2.* did.
Code
// CSS Loader portion of webpack config
{
loader: 'css-loader',
options: {
modules: {
localIdentName: '[name]_[local]_[hash:base64:5]',
},
importLoaders: 2,
sourceMap: !production,
},
},
How Do We Reproduce?
Use a SCSS filename with one or more .
in the filename.