From 69194915d4fa999d8f5584b9c2dbcfdb7e26d21c Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 23 May 2016 19:16:48 +0100 Subject: Sprite loading improvements, touch controls - SVG sprite loading automatically for an easier setup - Touch devices now show controls on touch rather than pausing playback --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 364012c4..99fcfedd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -264,6 +264,7 @@ gulp.task("cdn", function () { .pipe(rename(function (path) { path.dirname = path.dirname.replace(".", version); })) + .pipe(replace(localPath, versionPath)) .pipe(s3(aws.cdn, options.cdn)); }); @@ -279,9 +280,10 @@ gulp.task("docs", function () { // Replace versioned files in plyr.js gulp.src(path.join(root, "src/js/plyr.js")) .pipe(replace(semver, "v" + version)) + .pipe(replace(cdnpath, aws.cdn.bucket + "/" + version)) .pipe(gulp.dest(path.join(root, "src/js/"))); - // Replace local file paths with remote paths in docs + // Replace local file paths with remote paths in docs HTML // e.g. "../dist/plyr.js" to "https://cdn.plyr.io/x.x.x/plyr.js" gulp.src([paths.docs.root + "*.html"]) .pipe(replace(localPath, versionPath)) -- cgit v1.2.3