Skip to content

Instantly share code, notes, and snippets.

@KL13NT
Created August 11, 2020 05:22
Show Gist options
  • Save KL13NT/6d7c8e9c6274f8c7891199f701b806b4 to your computer and use it in GitHub Desktop.
Save KL13NT/6d7c8e9c6274f8c7891199f701b806b4 to your computer and use it in GitHub Desktop.
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