mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Remove the -es5
/-legacy
special handling in the gulp wintersmith
task (PR 12978 follow-up)
With the stable version now being `2.8.335`, this work-around is no longer necessary.
This commit is contained in:
parent
d05f4c620e
commit
13dbbdcfb0
2 changed files with 2 additions and 16 deletions
14
gulpfile.js
14
gulpfile.js
|
@ -1907,20 +1907,6 @@ gulp.task("wintersmith", function (done) {
|
|||
}
|
||||
const { stableVersion, betaVersion } = config;
|
||||
|
||||
// Create appropriate file names for the legacy builds. This logic can be
|
||||
// removed and/or simplified, once the stable version is past the cutoff.
|
||||
const CUTOFF_VERSION = "2.7.570";
|
||||
replaceInFile(
|
||||
GH_PAGES_DIR + "/getting_started/index.html",
|
||||
/STABLE_VERSION_LEGACY/g,
|
||||
stableVersion + (stableVersion <= CUTOFF_VERSION ? "-es5" : "-legacy")
|
||||
);
|
||||
replaceInFile(
|
||||
GH_PAGES_DIR + "/getting_started/index.html",
|
||||
/BETA_VERSION_LEGACY/g,
|
||||
betaVersion + (betaVersion <= CUTOFF_VERSION ? "-es5" : "-legacy")
|
||||
);
|
||||
|
||||
replaceInFile(
|
||||
GH_PAGES_DIR + "/getting_started/index.html",
|
||||
/STABLE_VERSION/g,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue