-
Notifications
You must be signed in to change notification settings - Fork 1
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
Styles extraction into css file #9
Comments
I think so. For instance:
|
@sgtpep thanks for an idea. Trying to find a package which extracts classes to a .css file, leaves object with classes in .js file and can be used with rollup out-of-the-box. Probably not a scope for this package I guess? |
The flow I search is this: const styles = css`
.root {
color: red;
}
`
const b = styles.root Which replaces code above in js file into smth like: const styles = {
root: 'hashed-class'
}
const b = styles.root or ideally just to: const b = 'hashed-class' And compiles a css file with: .hashed-class {
color: red;
} Can't find any which does all of this 🤔 |
I'm thinking sort of along these lines too. I've been working on a build system (called macrome) designed specifically to manage build steps best done in the working tree. Once I'm finished with it I think it could easily handle something like this. The one thing is that I think it makes sense to output a single |
Is it possible to extract all styles into .css file and leave only class names in .js file?
The text was updated successfully, but these errors were encountered: