aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-02-19 01:17:08 +1100
committerSam Potts <sam@potts.es>2019-02-19 01:17:08 +1100
commit44d3a17870949e828e5b1a4619a30dfcb626a174 (patch)
treef68fa338c2f57cbeb33b6ad1075e3175458e35a0 /gulpfile.js
parent54110f83582e3c6d12ee7ba3f09e4b116be87ffd (diff)
downloadplyr-44d3a17870949e828e5b1a4619a30dfcb626a174.tar.lz
plyr-44d3a17870949e828e5b1a4619a30dfcb626a174.tar.xz
plyr-44d3a17870949e828e5b1a4619a30dfcb626a174.zip
Fix links
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/gulpfile.js b/gulpfile.js
index cb005514..e7c50b1f 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -173,7 +173,6 @@ Object.entries(build.js).forEach(([filename, entry]) => {
extname: `.${extension}`,
}),
)
- .pipe(size(sizeOptions))
.pipe(gulp.dest(entry.dist))
.pipe(filter(`**/*${extension}`))
.pipe(terser())
@@ -268,14 +267,12 @@ const options = {
cdn: {
headers: {
'Cache-Control': `max-age=${maxAge}`,
- Vary: 'Accept-Encoding',
},
},
demo: {
uploadPath: branch.current === branch.beta ? 'beta' : null,
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate, max-age=0',
- Vary: 'Accept-Encoding',
},
},
symlinks(ver, filename) {
@@ -428,7 +425,7 @@ gulp.task('demo', done => {
// e.g. "../dist/plyr.js" to "https://cdn.plyr.io/x.x.x/plyr.js"
const index = `${paths.demo.root}index.html`;
const error = `${paths.demo.root}error.html`;
- const pages = [index, error];
+ const pages = [index];
if (branch.current === branch.master) {
pages.push(error);
@@ -466,9 +463,11 @@ gulp.task('error', done => {
// Open the demo site to check it's ok
gulp.task('open', () => {
+ const { domain } = deploy.demo;
+
return gulp.src(__filename).pipe(
open({
- uri: `https://${aws.demo.domain}/${branch.current === branch.beta ? 'beta' : ''}`,
+ uri: `https://${domain}/${branch.current === branch.beta ? 'beta' : ''}`,
}),
);
});