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

Support Browserslist #143

Closed
fabb opened this issue Mar 21, 2019 · 2 comments
Closed

Support Browserslist #143

fabb opened this issue Mar 21, 2019 · 2 comments

Comments

@fabb
Copy link

fabb commented Mar 21, 2019

It would be awesome if Stylis could support browserslist to control which vendor prefixes to generate.

@Andarist
Copy link
Collaborator

I believe that this is out of the stylis scope - it's meant to be a minimal implementation. You could implement your own. With current v3 you can customize which properties are being prefixed by providing a function as prefix option as described here:
https://github.com/thysultan/stylis.js/tree/4561e9bc830fccf1cb0e9e9838488b4d1d5cebf5#vendor-prefixing
And with upcoming v4 you will be able to build such an integration yourself as well (taking provided prefixer as an example).

@Grawl
Copy link

Grawl commented Apr 19, 2024

If Stylis don't want to integrate Autoprefixer runtime, you can generate code using it to bundle. Just noticed I have vendor prefixes for flexbox including -ms-flex-pack.

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

3 participants