-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[1.0] When using gatsby-plugin-sass final output CSS isn't run through autoprefixer #1347
Comments
Is this still an issue? |
Using Gatsby 1.9.149 and I managed to fix it by modifying the Webpack config like proposed in #318. |
@kriim would you like to put together a PR for the sass plugin so it works out of the box? |
So would you be fine if The point of having |
@kriim that'd make sense to me. @scottyeck that was the original reason right for |
Moving that into the default plugin would make sense to me too. It was a little confusing for me in the first place that there are two plugins. |
Are there any updates regarding this issue? What should be done until a proper fix is available? |
@kripod It sounds like this is the suggested workaround for now: #318 (comment). Those changes would go in your local |
@KyleAMathews I think it would definitely make sense to autoprefix every flavor of CSS in Gatsby v2. |
@kripod yeah agreed. @m-allanson mentioned he wanted to take a hard look at all our CSS setup and fix things up. |
I tried Is there any chance that autoprefixing SCSS will be effortless in the near future? |
This is also an issue in |
Looked through this with @m-allanson and the issue has been resolved in v2. Closing this now, please make sure to update to the latest Gatsby version and check if that solves the issue. 👍 Here's the migration doc from v1 to v2 if that helps. 😄 |
If using
gatsby-plugin-sass
you don't get any vendor prefixes applied to your output CSS (in both development and production builds).I'm wondering if maybe autoprefixer should be run as the final loader for CSS files regardless of other loaders so that the
browserlist
is always used.Autoprefixer works when using
gatsby-plugin-postcss-sass
-- which makes sense, however there are some issues withgatsby-plugin-postcss-sass
that I'm still investigating.The text was updated successfully, but these errors were encountered: