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

[Feature]: getLocalIdent function support for css modules #3554

Closed
sowtame opened this issue Sep 25, 2024 · 2 comments
Closed

[Feature]: getLocalIdent function support for css modules #3554

sowtame opened this issue Sep 25, 2024 · 2 comments

Comments

@sowtame
Copy link

sowtame commented Sep 25, 2024

What problem does this feature solve?

In some cases, we cannot migrate to rusbuild due to the lack of this feature

What does the proposed API look like?

https://github.com/webpack-contrib/css-loader?tab=readme-ov-file#modules

getLocalIdent: (
context: LoaderContext,
localIdentName: string,
localName: string,
) => string;

@9aoy
Copy link
Collaborator

9aoy commented Sep 25, 2024

Have you tried tools.cssLoader? You can modify the options of css-loader through tools.cssLoader.

https://rsbuild.dev/config/tools/css-loader

@sowtame
Copy link
Author

sowtame commented Sep 25, 2024

Have you tried tools.cssLoader? You can modify the options of css-loader through tools.cssLoader.

https://rsbuild.dev/config/tools/css-loader

thank you very much, I missed this from the documentation

@sowtame sowtame closed this as completed Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants