-
-
Notifications
You must be signed in to change notification settings - Fork 605
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
export classes (include :global
)
#258
Comments
not sure that you can if not using css modules. Using modules you can print the key names (NB: this also seems to print IDs as well as styles.)
What are you trying to do? |
@psimyn in my project server side rendering html and i can't use css module on server. expamle //style.css
.block {width:100%;}
.block_size_big {color: red;} //index.es6
import slyle form './style.css';
var classList = new ClassList(style);
classList.mod('size','big'); // ok
classList.mod('size','normal'); // error this mod not found in styles |
You could do that by checking for each of them. Not sure what
|
main idea write class names only css and check by this my code. And do not modify the css using :local |
you don't need Does this help? |
@DragorWW, how do you resolve this? Are you using CSS Modules option or another thing? |
Sorry for delay, feel free to PR, it is feature |
:global
)
Done in upstream css-modules/postcss-modules-scope#21 |
Need update schema for that |
Shall I create PR directly or create a new issue to describe? |
Feel free to send a PR directly |
if not use css-module, how to get class from file ?
The text was updated successfully, but these errors were encountered: