aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorSam <me@sampotts.me>2016-05-23 19:16:48 +0100
committerSam <me@sampotts.me>2016-05-23 19:16:48 +0100
commit69194915d4fa999d8f5584b9c2dbcfdb7e26d21c (patch)
treeab69691118dbc801e4ead7359a31e47b41b9528c /gulpfile.js
parent98e4c5aceadb8b6b50e03bef749efcfe8b6d58c7 (diff)
downloadplyr-69194915d4fa999d8f5584b9c2dbcfdb7e26d21c.tar.lz
plyr-69194915d4fa999d8f5584b9c2dbcfdb7e26d21c.tar.xz
plyr-69194915d4fa999d8f5584b9c2dbcfdb7e26d21c.zip
Sprite loading improvements, touch controls
- SVG sprite loading automatically for an easier setup - Touch devices now show controls on touch rather than pausing playback
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js4
1 files changed, 3 insertions, 1 deletions
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))