aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 09a5ca4a..8f9b1836 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -312,9 +312,13 @@ if (Object.keys(aws).includes('cdn') && Object.keys(aws).includes('demo')) {
.pipe(replace(cdnpath, `${aws.cdn.domain}/${version}/`))
.pipe(gulp.dest(root));
- // Replace versioned files in plyr.js
+ // Replace versioned URLs in source
+ const files = [
+ 'plyr.js',
+ 'defaults.js',
+ ];
gulp
- .src(path.join(root, 'src/js/plyr.js'))
+ .src(files.map(file => path.join(root, `src/js/${file}`)))
.pipe(replace(semver, `v${version}`))
.pipe(replace(cdnpath, `${aws.cdn.domain}/${version}/`))
.pipe(gulp.dest(path.join(root, 'src/js/')));