-
-
Notifications
You must be signed in to change notification settings - Fork 867
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
Css modules #459
Comments
You can implement by modifying webpack in razzle.config.js. The plan is keep Razzle's default CSS inline with create-react-app's to ease migration. |
Sorry I closed this and responded before seeing Dan's tweet this morning that CSS modules support landed in CRA. Yes, i suppose we should implement it as well. |
I'm trying to add this now, following the steps from the CRA pull request. The only problem is server rendering, no CSS is coming through on the SSR request 🤔 |
I think the main thing is to use the style-loader in the Edit: Just saw, that this is already done |
I have created #460 . This is what I had in mind. I am not that familiar with If it is going in the right direction I am happy to edit the other templates and add docs. Edit: Having a similar issue as @dbbk now. At commit 298fa1b with only css modules active it works fine. Trying to enable both fails. Unfortunately I do not have more time to look into this today. Funny enough if you edit a file and HMR is applying an udpate the styles are correct. |
Hi,
are there any plans to support css modules?
F.e. through css-modules/postcss-modules, or is this sth thats to specific and should be done by extending the webpack config on a per project basis?
The text was updated successfully, but these errors were encountered: