diff options
author | Sam <me@sampotts.me> | 2016-05-23 19:16:48 +0100 |
---|---|---|
committer | Sam <me@sampotts.me> | 2016-05-23 19:16:48 +0100 |
commit | 69194915d4fa999d8f5584b9c2dbcfdb7e26d21c (patch) | |
tree | ab69691118dbc801e4ead7359a31e47b41b9528c /gulpfile.js | |
parent | 98e4c5aceadb8b6b50e03bef749efcfe8b6d58c7 (diff) | |
download | plyr-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.js | 4 |
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)) |