mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
Move browsers to cross-tool config (#3644)
This commit is contained in:
committed by
Joe Haddad
parent
1f18ab7879
commit
0a331710aa
7
packages/react-scripts/scripts/init.js
vendored
7
packages/react-scripts/scripts/init.js
vendored
@@ -43,6 +43,13 @@ module.exports = function(
|
||||
eject: 'react-scripts eject',
|
||||
};
|
||||
|
||||
appPackage.browserslist = [
|
||||
'>1%',
|
||||
'last 4 versions',
|
||||
'Firefox ESR',
|
||||
'not ie < 9',
|
||||
];
|
||||
|
||||
fs.writeFileSync(
|
||||
path.join(appPath, 'package.json'),
|
||||
JSON.stringify(appPackage, null, 2)
|
||||
|
||||
Reference in New Issue
Block a user