-
Notifications
You must be signed in to change notification settings - Fork 509
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
react library with scss modules support #63
Comments
I don’t use css modules, so I’m not familiar with what best practices are for including/excluding them in a 3rd party component that eventually gets consumed by something like CRA or Parcel that actually does css processing. For example, Reach UI, has a vanilla CSS file that you eventually import into your app. Again, I’m open to this, I just don’t understand how it should be done |
Just a Should import of What about variables / mixins? Should they evaluated on per file basis or should we collect all dependencies first? Another big question here is assets (fonts, images, svgs, ...) mentioned in css/scss files or. |
I think this could probably be closed and rolled up (haha get it) into #110 |
|
I'd say in a React component library, everything should be self-contained after bundling. That's why I'd say all CSS should be treated as CSS modules, so there are no name conflicts with a consuming app or component library. With Assets could be treated similar to how Create React App does it. SVGs are imported as React components using Other libraries like |
we've enabled customizable configs since this issue was open. please have a try. we still have other users interested in css modules that are reporting small issues. |
Current Behavior
Is not possible to use it with scss and module
Desired Behavior
Be able to use it as CRA
scss file: helloWorld.module.scss
ts: import style from "./helloWorld.module.scss"
Suggested Solution
Have a look on CRA and see how it works
Who does this impact? Who is this for?
All the developer that want to create a library with multiple modules and have support of scss
The text was updated successfully, but these errors were encountered: