Created
July 12, 2021 18:14
-
-
Save FSou1/f06358d286bcc89fa79e93fc4169a05a 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
{ | |
test: cssRegex, | |
exclude: cssModuleRegex, | |
use: [ | |
{ | |
loader: require.resolve('style-loader'), | |
options: { | |
esModule: false, | |
}, | |
}, | |
{ | |
loader: require.resolve('dts-css-modules-loader'), | |
options: { | |
namedExport: true | |
} | |
}, | |
{ | |
loader: require.resolve('css-loader'), | |
options: { | |
modules: { | |
exportLocalsConvention: 'camelCaseOnly', | |
localIdentName: "[hash:base64:5]", | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment