postcss / postcss-js

PostCSS for React Inline Styles, Free Style and other CSS-in-JS
MIT License
657 stars 25 forks source link

the output is not the result which i want. #34

Closed plh97 closed 5 years ago

plh97 commented 5 years ago

image

i want to output

{ display: ['-webkit-box', '-webkit-flex', '-ms-flexbox', 'flex'] }

but it output

{ display: 'flex' }

i have read all the readme file, but can't output the text which i want

ai commented 5 years ago

Flexbox doesn't need prefixes for modern browsers anymore.

If you want to test Autprefixer, use userSelect: 'none'.

I will update example.

plh97 commented 5 years ago

thx a lot ,i fix my problem

ai commented 5 years ago

https://github.com/postcss/postcss-js/commit/ea0414546948bb9822b2afcc7ca9ebb8546d30e3