Skip to content

Commit

Permalink
chore: make style hash by local (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZLY201 authored Nov 4, 2023
1 parent 9b0d725 commit a04a5e0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rspack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a04a5e0

Please sign in to comment.