Created
June 2, 2020 11:21
-
-
Save Oluwa-nifemi/6c4f545125a6687ad1d5b299461c2c8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.module.rules.find( | |
rule => rule.test.toString() === '/\\.css$/', | |
).exclude = /\.module\.css$/; | |
config.module.rules.push({ | |
test: /\.module\.css$/, | |
use: [ | |
'style-loader', | |
{ | |
loader: 'css-loader', | |
options: { | |
modules: true, | |
importLoaders: 1, | |
localIdentName: '[path]__[name]___[local]' | |
}, | |
}, | |
], | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment