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
What about debugging? #17
Comments
Source map support would be great. I think I wouldn't use stilr without Source maps. |
PR is very welcome. We will look into this, but I can't see exactly when, so any PR could speed up the process. |
PostCSS can create sourcemap. I think this will be enough. It'll generate inline source map, which is fast and therefore completely OK for development IMO. if (process.env !== 'production') {
const prefixedCSS = postcss(autoprefixer())
.process( StyleSheet.render(), { map: true} ) // <--- THIS
.css;
stylesheet.textContent = prefixedCSS;
} As for production usage, you can generate separate source map, too. See the docs. |
would be great to expand on classnames, only problem I have with Stilr is hash only classnames! |
@boyswan sorry, but I do not understand, what you want. Can you please rephrase? You would like Stilr to not use hashes as classnames? |
At the moment classnames are generated as pure hashe's i.e. 'xy132as', it would be great if we could also include the actual classname, i.e. 'button_xy132as' |
Okay, so actually just a vote for the initial issue comment? PR is more than welcome. |
The project seems super-interesting, I can't wait to try! But one question came to my mind - what about debugging? Did you consider sourcemaps generation? Or conditional (
process.env.NODE_ENV !== 'production
) expanding class names to readable form (like_xy132as_redButton
). Do you plan anything like that?The text was updated successfully, but these errors were encountered: