styled-jsx-postcss icon indicating copy to clipboard operation
styled-jsx-postcss copied to clipboard

change build order?

Open cj opened this issue 7 years ago • 1 comments

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?

cj avatar Jun 29 '17 17:06 cj

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

giuseppeg avatar Jul 22 '17 06:07 giuseppeg