[api-minor] Update the minimum supported Google Chrome version
The patch changes the minimum supported version of Google Chrome as follows: - Chrome 88, which was released on 2021-01-19; see https://en.wikipedia.org/wiki/Google_Chrome_version_history This is done to allow use of modern CSS features, such as e.g. `:is()` and `:where()` in the code-base.
This commit is contained in:
parent
b135dadb17
commit
ce3ea58778
23
gulpfile.js
23
gulpfile.js
@ -79,7 +79,7 @@ const config = JSON.parse(fs.readFileSync(CONFIG_FILE).toString());
|
|||||||
|
|
||||||
const ENV_TARGETS = [
|
const ENV_TARGETS = [
|
||||||
"last 2 versions",
|
"last 2 versions",
|
||||||
"Chrome >= 87",
|
"Chrome >= 88",
|
||||||
"Firefox ESR",
|
"Firefox ESR",
|
||||||
"Safari >= 14.1",
|
"Safari >= 14.1",
|
||||||
"Node >= 16",
|
"Node >= 16",
|
||||||
@ -1309,6 +1309,9 @@ gulp.task(
|
|||||||
...COMMON_WEB_FILES,
|
...COMMON_WEB_FILES,
|
||||||
"!web/images/toolbarButton-openFile.svg",
|
"!web/images/toolbarButton-openFile.svg",
|
||||||
];
|
];
|
||||||
|
const MOZCENTRAL_AUTOPREFIXER_CONFIG = {
|
||||||
|
overrideBrowserslist: ["last 1 firefox versions"],
|
||||||
|
};
|
||||||
|
|
||||||
// Clear out everything in the firefox extension build directory
|
// Clear out everything in the firefox extension build directory
|
||||||
rimraf.sync(MOZCENTRAL_DIR);
|
rimraf.sync(MOZCENTRAL_DIR);
|
||||||
@ -1350,23 +1353,11 @@ gulp.task(
|
|||||||
),
|
),
|
||||||
|
|
||||||
preprocessCSS("web/viewer.css", defines)
|
preprocessCSS("web/viewer.css", defines)
|
||||||
.pipe(
|
.pipe(postcss([autoprefixer(MOZCENTRAL_AUTOPREFIXER_CONFIG)]))
|
||||||
postcss([
|
|
||||||
autoprefixer({
|
|
||||||
overrideBrowserslist: ["last 1 firefox versions"],
|
|
||||||
}),
|
|
||||||
])
|
|
||||||
)
|
|
||||||
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
|
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
|
||||||
|
|
||||||
preprocessCSS("web/viewer-geckoview.css", defines)
|
preprocessCSS("web/viewer-geckoview.css", defines)
|
||||||
.pipe(
|
.pipe(postcss([autoprefixer(MOZCENTRAL_AUTOPREFIXER_CONFIG)]))
|
||||||
postcss([
|
|
||||||
autoprefixer({
|
|
||||||
overrideBrowserslist: ["last 1 firefox versions"],
|
|
||||||
}),
|
|
||||||
])
|
|
||||||
)
|
|
||||||
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
|
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
|
||||||
|
|
||||||
gulp
|
gulp
|
||||||
@ -1455,7 +1446,7 @@ gulp.task(
|
|||||||
.pipe(
|
.pipe(
|
||||||
postcss([
|
postcss([
|
||||||
postcssDirPseudoClass(),
|
postcssDirPseudoClass(),
|
||||||
autoprefixer({ overrideBrowserslist: ["Chrome >= 87"] }),
|
autoprefixer(AUTOPREFIXER_CONFIG),
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
.pipe(gulp.dest(CHROME_BUILD_CONTENT_DIR + "web")),
|
.pipe(gulp.dest(CHROME_BUILD_CONTENT_DIR + "web")),
|
||||||
|
Loading…
Reference in New Issue
Block a user