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

output a css structure object #7

Open
leeoniya opened this issue Apr 9, 2019 · 0 comments
Open

output a css structure object #7

leeoniya opened this issue Apr 9, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@leeoniya
Copy link
Owner

leeoniya commented Apr 9, 2019

personally, i author static stylesheets as js objects and use https://github.com/cssobj/cssobj to compile them (which handles a basic level of optimizations). since DropCSS already tokenizes the css (besides properties), it would be useful to expose the tokens to allow the build-out of a small post-processor which completes the parsing of props and creates a js object that can be fed into cssobj for final optimizations & compression.

probably the only actionable thing for this lib is to return the css tokens alongside the generated css.

@leeoniya leeoniya added the enhancement New feature or request label Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant