-
Notifications
You must be signed in to change notification settings - Fork 331
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
Generating compiled CSS from SASS for Component Library #433
Comments
What about, if create task for nwb like as 'demo', which will be compile styles through webpack? |
I'm having similar issues, here. @insin Any thoughts/comments on this issue? Thanks! |
@insin is this feature something that can be configured/implemented w/ the current architecture of |
I'm struggling with this as well. I have a table component which heavily relies on CSS to style itself. So, I would like a way to package the stylesheet (SCSS) with the ES and Lib. |
This might solve your problem #486 |
That's a good solution, but when i use modifyVars in nwb.config.js, It doesn't seem to work
|
I am sorry I can't help you on this @Clairezyw. I used |
@samrith-s how to solve this problem?
|
@busyzz-1994 I stopped using this library 😄 |
This issue is a:
Hello!
I'm using nwb to build a component library for my team. I've run into an issue where a third party component is primarily theme-able via less / sass. I would like to generate a compile css file for this sass in my
es
/lib
directories. This would allow my library consumers to forgo installing / updating their webpack configs to support compiling sass files from the modules.Some additional information:
"nwb": "0.21.x",
nwb build-react-component --copy-files --keep-proptypes
I have attempted to do the above with the nwb-sass plugin. That said, I have not had success in generating css file in either the
es
orlib
directories.My current webpack config in
nwb.config.js
I would sincerely appreciate an example on how to configure my config to generate a css file given scss file or otherwise.
EDIT: Looking into this further it looks like webpackBuild isn't even being called when building the
es
andlib
directories. (seenwb/src/moduleBuild.js
Line 15 in 2c06dd4
I don't have any interest in building a full UMD build but I do require the css styling. I'm assuming this would require a PR unless I've missed something.
The text was updated successfully, but these errors were encountered: