Skip to content

Commit

Permalink
always use hash for CSS module class names
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Aug 19, 2024
1 parent bb49992 commit 724de24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/docusaurus/src/webpack/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,7 @@ export async function createBaseConfig({
test: CSS_MODULE_REGEX,
use: getStyleLoaders(isServer, {
modules: {
localIdentName: isProd
? `[local]_[contenthash:base64:4]`
: `[local]_[path][name]`,
localIdentName: `[local]_[contenthash:base64:4]`,
exportOnlyLocals: isServer,
},
importLoaders: 1,
Expand Down

0 comments on commit 724de24

Please sign in to comment.