Created by: gaearon
Proof of concept for https://github.com/facebookincubator/create-react-app/issues/892. Doesn't work with ejecting yet.
Both autoprefixer and Babel are driven by a config like this in package.json
:
"browsers": {
"development": [
"last 1 chrome version"
],
"production": [
">1%",
"last 4 versions",
"Firefox ESR",
"not ie < 9"
]
}
Currently I throw if it doesn't exist since I could generate a reasonable config by default (e.g. "last two versions" for development) in new projects and ask old projects to include it during migration. In a way this would be "configuration" but actually sensible one. I don't have a strong opinion here though.