Skip to content
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

Create option to generate className even if style is missing #217

Closed
antonholmquist opened this issue Nov 22, 2018 · 1 comment
Closed

Comments

@antonholmquist
Copy link

antonholmquist commented Nov 22, 2018

This is a use case I have that creates problem with webpack dev middleware:

  1. Add style to a React element that doesn't yet have a corresponding class in the css file
  2. Add the class to the css file
  3. Webpack would need to reload the js file to resolve again, so I need to go to the js file and re-save it to trigger the reload.

This could probably be fixed with an option to generate classNames even though no corresponding class yet exist.

What's your view on this? I can see this would be useful during development and with certain setups.

Would also like to add that I'm very happy with this plugin! Thank you so much for putting it together.

@gajus
Copy link
Owner

gajus commented Nov 27, 2018

#135

@gajus gajus closed this as completed Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants