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

Disable autoprefixing for everything inside particular style tag #243

Closed
almeynman opened this issue Jun 23, 2017 · 5 comments
Closed

Disable autoprefixing for everything inside particular style tag #243

almeynman opened this issue Jun 23, 2017 · 5 comments

Comments

@almeynman
Copy link

almeynman commented Jun 23, 2017

Given component like that. I do not want to autoprefix global styles.

import stylesheet from "./index.css";
import globalStyles from "./global.css";
import Layout from "../components/Layout";

export default () =>
  <Layout>
    <div className="hello">
      <p>Hello World</p>
    </div>
    <style jsx>{stylesheet}</style>
    <style jsx global>{globalStyles}</style>
  </Layout>;
@giuseppeg
Copy link
Collaborator

Could not be done for external styles though. What we can do is add an option to disable it completely maybe.

@almeynman
Copy link
Author

An option to disable it completely is exactly what I need.
I need to disable it completely for external stylesheet, as most of them do not require prefixing

@giuseppeg
Copy link
Collaborator

@almeynman that would disable it also for inline styles, is that ok?

@almeynman
Copy link
Author

@giuseppeg ok

@giuseppeg
Copy link
Collaborator

the option to disable vendor prefixing was introduced in version 2.1.0 https://github.com/zeit/styled-jsx/releases/tag/v2.1.0

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

No branches or pull requests

2 participants