-
Notifications
You must be signed in to change notification settings - Fork 121
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
Question: it posible build webpack with style-loader #162
Comments
Hello @Bogdaan I haven't looked into css-modules yet, I can't help you with that sorry. If someone else watching the repo has some answers would be great! |
A possible solution: require hook ( https://github.com/sullenor/universal-demo ) |
I think css-modules is better for application architecture (and for boilerplate). In "real application" we work with hundreds of components. And folder/styles structure must contain full component data (jsx / css / fonts / images / icons ), because the atomic components is easier to maintain. |
@Bogdaan have you seen https://github.com/gajus/react-css-modules? |
@dmitry no, it posible merge to css bundles in one with react-css-modules?
|
@Bogdaan look at #167 (thanks to @MaxSvargal) he's using radiumcss. Does it helps? |
@iam4x i not familiar with radiumcss (this PR large :)) Too bad: https://github.com/MaxSvargal/kk-flux/commit/6ebe287f51292a8cbb0ea7a64630af9b94580bb2 |
@Bogdaan absolutely. Only pure javascript. In production I have no problems with inline styles, but with exception of some agreements. |
Hi, i use webpack style-loader just for optimize long names like "mycomponent-element-element--state-longname", and it imposible use it with this example?
My config
In jsx i use requre for classnames map:
I must choose:
or server-side rendering with "global css" and plaintext styles
or power of webpack with short class names but without server-side rendering.
But I wanted to use both approaches. Anyone else encountered this problem?
The text was updated successfully, but these errors were encountered: