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

Fix CSS Modules generated scope name based on prod vs dev mode. #1749

Merged
merged 1 commit into from
Oct 29, 2020

Conversation

ashuverma
Copy link
Contributor

@ashuverma ashuverma commented Oct 28, 2020

Issue: Currently css modules with SSR works only during dev mode. It is because the generated class name during ssr (css-require-hook) vs webpack build uses different generated scope names.

Also, there is strict check for options.cssModuleHook as boolean but code expects an object to get the generated Scope name from user land. Users won't be able to override the generatedScopeName value.

Fix: Allow objects to be passed from users to control options passed to css module require hook and default to short names for production mode.

cc @jchip @divyakarippath

@jchip jchip merged commit 69d7751 into electrode-io:master Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants