-
-
Notifications
You must be signed in to change notification settings - Fork 775
feat: support [folder]
template string in localIdentName
option
#11356
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
feat: support [folder]
template string in localIdentName
option
#11356
Conversation
✅ Deploy Preview for rspack ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for [folder]
template strings in the localIdentName
option for CSS modules. This allows users to include the parent directory name in their CSS class name generation.
- Added
[folder]
template string support tolocalIdentName
option - Extracted folder name from the resource file path using
Path::new().parent().file_name()
- Integrated folder replacement logic into the existing template string system
[folder]
template strings in localIdentName
option
[folder]
template strings in localIdentName
option[folder]
template string in localIdentName
option
Could you please add some tests? |
Sorry about that - since this was my first contribution, I wasn’t sure where the related tests were located, so I hadn’t added.
|
CodSpeed Performance ReportMerging #11356 will not alter performanceComparing 🎉 Hooray!
|
Thanks! |
Summary
Support
[folder]
template string inlocalIdentName
optionclose #11184
Related links
Checklist