Skip to content

Make browsers list configurable - revisited#3183

Closed
kasperpeulen wants to merge 29 commits intofacebook:masterfrom
kasperpeulen:browser-list-2
Closed

Make browsers list configurable - revisited#3183
kasperpeulen wants to merge 29 commits intofacebook:masterfrom
kasperpeulen:browser-list-2

Conversation

@kasperpeulen
Copy link
Copy Markdown
Contributor

follow up on #2358

Autoprefixer's browsers option is currently hardcoded. This PR adds the browserslist key in package.json which allows developers to set different browsers for both production and development.
Autoprefixer which relies on Browserslist will find its config automatically.
This PR fixes #2248 and #892

cr101 and others added 26 commits May 25, 2017 15:58
…he browserslist key in package.json which allows developers to set browsers list in queries like "Chrome >= 35", "Firefox >= 38" for both production and development. Autoprefixer which relies on Browserslist will find its config automatically. This PR fixes facebook#2248 and facebook#892
# Conflicts:
#	packages/react-scripts/config/webpack.config.dev.js
#	packages/react-scripts/config/webpack.config.prod.js
@react-scripts-dangerous
Copy link
Copy Markdown

Hello! I'm a bot that helps facilitate testing pull requests.

Your pull request (commit e6a7ff8) has been released on npm for testing purposes.

npm i react-scripts-dangerous@1.0.14-e6a7ff8.0
# or
yarn add react-scripts-dangerous@1.0.14-e6a7ff8.0
# or
create-react-app --scripts-version=react-scripts-dangerous@1.0.14-e6a7ff8.0 folder/

Note that the package has not been reviewed or vetted by the maintainers. Only install it at your own risk!

Thanks for your contribution!

@codering
Copy link
Copy Markdown

How about babel-preset-env option targets.browsers ?

@Gilthoniel
Copy link
Copy Markdown

Any news about this one ?

@rilyu
Copy link
Copy Markdown

rilyu commented Dec 22, 2017

Is this feature supported? I want to support iOS 8 and do not want to eject

@gaearon
Copy link
Copy Markdown
Contributor

gaearon commented Jan 9, 2018

We decided to merge a version of this into the next branch where we don't have the default fallback. So when we release react-scripts@2.0.0 you'll need to explicitly specify browserslist or you'll fall back to its own defaults.

@gaearon gaearon closed this Jan 9, 2018
@lock lock Bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option for enabling Flexbox 2009

8 participants