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

change build order? #21

Open
cj opened this issue Jun 29, 2017 · 1 comment
Open

change build order? #21

cj opened this issue Jun 29, 2017 · 1 comment

Comments

@cj
Copy link

cj commented Jun 29, 2017

postcss plugins like https://github.com/postcss/postcss-color-function are not working, due to the build order, right now it's being processed by postcss like color(${ theme.color.tertiary } contrast(100%)), instead of color(#444 contrast(100%)). Could we change the build order, so https://github.com/giuseppeg/styled-jsx-postcss/blob/master/src/babel.js#L117 is run first?

@giuseppeg
Copy link
Owner

giuseppeg commented Jul 22, 2017

unfortunately this is not optimal because we would need to run postcss at runtime and on the browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants