Skip to content

Commit c977fbb

Browse files
committed
Lessen significance of browserslist
Adjust the default browsers to be a single list and remove it from the build output; it only affects CSS now
1 parent 8fd207a commit c977fbb

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

package.json

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,9 @@
8080
"optionalDependencies": {
8181
"fsevents": "1.2.4"
8282
},
83-
"browserslist": {
84-
"development": [
85-
"last 2 chrome versions",
86-
"last 2 firefox versions",
87-
"last 2 edge versions"
88-
],
89-
"production": [
90-
">1%",
91-
"last 4 versions",
92-
"Firefox ESR",
93-
"not ie < 11"
94-
]
95-
}
83+
"browserslist": [
84+
">0.25%",
85+
"not op_mini all",
86+
"ie 11"
87+
]
9688
}

scripts/build.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
4141
const printHostingInstructions = require('react-dev-utils/printHostingInstructions');
4242
const FileSizeReporter = require('react-dev-utils/FileSizeReporter');
4343
const printBuildError = require('react-dev-utils/printBuildError');
44-
const { printBrowsers } = require('react-dev-utils/browsersHelper');
4544

4645
const measureFileSizesBeforeBuild =
4746
FileSizeReporter.measureFileSizesBeforeBuild;
@@ -119,7 +118,6 @@ checkBrowsers(paths.appPath)
119118
buildFolder,
120119
useYarn
121120
);
122-
printBrowsers(paths.appPath);
123121
},
124122
err => {
125123
console.log(chalk.red('Failed to compile.\n'));

0 commit comments

Comments
 (0)