Created
August 11, 2020 05:22
-
-
Save KL13NT/6d7c8e9c6274f8c7891199f701b806b4 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
module.exports = { | |
module: { | |
rules: [ | |
{ | |
test: /\.module\.sass$/i, | |
use: [ | |
mode === 'development' ? | |
'style-loader' : | |
MiniCssExtractPlugin.loader, | |
{ | |
loader: 'css-loader', | |
options: { | |
modules: { | |
localIdentName: | |
mode === 'development' | |
? '[local]___[hash:base64:5]' | |
: '[hash:base64:5]', | |
mode: 'local' | |
} | |
} | |
}, | |
'postcss-loader', | |
'sass-loader' | |
] | |
}, | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment