-
Notifications
You must be signed in to change notification settings - Fork 414
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
Allow to disable auto prefixng for extracted CSS #57
Comments
With stylis it's not configurable? |
@thymikee doesn't look like that - https://github.com/thysultan/stylis.js |
How about switching to PostCSS? We're already using it to extract critical CSS. |
Closing this in favour of #142. There is nothing we can do about |
Stylis now has an option disable vendor prefixing with |
We should allow to write custom preprocessor for advanced use cases, exposing each stylis option in babel preset is not a good idea. |
Not suggesting to expose each stylis option. Disabling auto-prefixing is a common enough case and needed to avoid shipping more code than necessary to the browsers. Custom pre-processor is nice, but will require too much setup for just disabling prefixing. |
Just adding the following to my webpack configuration file seems to have done the trick for me: import stylis from 'stylis'
stylis.set({ prefix: false }) |
Not sure why this issue is closed, since it was not fixed and there is still no easy way to disable this annoying auto-prefixing provided by linaria by default. I shouldn't have to use change the pre-processor to achieve that, imo. |
@buzinas you should be able to do this in your webpack config: const stylis = require('stylis');
...
stylis.set({ prefix: false }); |
Yep, that's what I did… Thanks, @satya164! |
Would be nice if this was documented and not buried in the issues. 🤔 |
This still doesn't work for me. Nothing I do can disable it so far, guess it's time to go digging through source code. |
Still not possible to disable auto prefixing, Stylis doesn't exports I've encountered issue with auto prefixing and variable name generating: If not possible to disable prefixing, maybe it is possible to adjust variable name generating rules, so variable name will not match prefixing regular expressions in Stylis? |
Found an option |
Currently the CSS will be autoprefixed to support as far as IE8. We need to be able to customize the browser target to reduce any extra code we don't need.
Perhaps we should switch to PostCSS instead of stylis as the parser so we have finer control over the extraction.
The text was updated successfully, but these errors were encountered: