Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change cssmodule classname hash to use repo relative paths instead of… #6876

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-dev-utils/getCSSModuleLocalIdent.js
Expand Up @@ -23,7 +23,7 @@ module.exports = function getLocalIdent(
: '[name]';
// Create a hash based on a the file location and class name. Will be unique across a project, and close to globally unique.
const hash = loaderUtils.getHashDigest(
context.resourcePath + localName,
context.resourcePath.replace(context.rootContext, '') + localName,
heyimalex marked this conversation as resolved.
Show resolved Hide resolved
'md5',
'base64',
5
Expand Down