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

Doesnt pick browserslist config #72

Open
sinujohn91 opened this issue Dec 28, 2016 · 6 comments
Open

Doesnt pick browserslist config #72

sinujohn91 opened this issue Dec 28, 2016 · 6 comments
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt enhancement help wanted

Comments

@sinujohn91
Copy link

sinujohn91 commented Dec 28, 2016

Issuehunt badges

Hi,

Browserslist config from package.json is not read.

Thanks,
Sinu

There is a $40.00 open bounty on this issue. Add more on Issuehunt.

@thomasmattheussen
Copy link

Just stumbled across this issue...

It seems to work fine in my current project though, can't actually reproduce this.

@simison
Copy link

simison commented May 4, 2017

If anyone has this issue, you could use this workaround:

.pipe(gulpAutoprefixer({
  browsers: require('./package.json').browserslist
}))

@jongc
Copy link

jongc commented Apr 16, 2018

Thanks @simison. I had a similar issue. Your solution works for me.

@adamjohnson
Copy link

I was using a .browserslistrc file at the root and it wasn't working. I transitioned my Browserslist config to package.json and implemented it using @simison's code above. 👍

@IssueHuntBot
Copy link

@IssueHunt has funded $40.00 to this issue.


@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label May 10, 2019
@mcmxcdev
Copy link

Just verified that I cannot reproduce this as of 2020, browserslist key in package.json and .browserslistrc both get picked up correctly and applied.

When using: .pipe(gulpAutoprefixer({ browsers: require('./package.json').browserslist })) you receive following hint:

  Replace Autoprefixer browsers option to Browserslist config.
  Use browserslist key in package.json or .browserslistrc file.

  Using browsers option can cause errors. Browserslist config 
  can be used for Babel, Autoprefixer, postcss-normalize and other tools.

  If you really need to use option, rename it to overrideBrowserslist.

  Learn more at:
  https://github.com/browserslist/browserslist#readme
  https://twitter.com/browserslist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt enhancement help wanted
Projects
None yet
Development

No branches or pull requests

8 participants