Skip to content

Instantly share code, notes, and snippets.

@FSou1
Created July 12, 2021 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FSou1/f06358d286bcc89fa79e93fc4169a05a to your computer and use it in GitHub Desktop.
Save FSou1/f06358d286bcc89fa79e93fc4169a05a to your computer and use it in GitHub Desktop.
{
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