diff --git a/rspack.config.ts b/rspack.config.ts index edaba55..a07e2fb 100644 --- a/rspack.config.ts +++ b/rspack.config.ts @@ -66,6 +66,17 @@ export default function createRspackConfig(): Configuration { }, { loader: 'css-loader', + options: { + modules: { + mode: 'local', + auto: true, + exportGlobals: true, + localIdentName: '[path][name]__[local]--[hash:base64:5]', + localIdentContext: path.resolve(__dirname, 'src'), + exportLocalsConvention: 'camelCase', + exportOnlyLocals: false, + }, + }, }, { loader: 'less-loader',