diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-09-03 05:15:00 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-09-03 05:15:00 +0800 |
commit | 2d0077d5c67e5861628e865c1477878f3277d10d (patch) | |
tree | 99d872d3c799ad0530ce4e2e998dd8df5b90dbc5 /gulpfile.js | |
parent | b4334a72b45d18c4985c1882f5da7ad4a1b907df (diff) | |
download | tangerine-wallet-browser-2d0077d5c67e5861628e865c1477878f3277d10d.tar tangerine-wallet-browser-2d0077d5c67e5861628e865c1477878f3277d10d.tar.gz tangerine-wallet-browser-2d0077d5c67e5861628e865c1477878f3277d10d.tar.bz2 tangerine-wallet-browser-2d0077d5c67e5861628e865c1477878f3277d10d.tar.lz tangerine-wallet-browser-2d0077d5c67e5861628e865c1477878f3277d10d.tar.xz tangerine-wallet-browser-2d0077d5c67e5861628e865c1477878f3277d10d.tar.zst tangerine-wallet-browser-2d0077d5c67e5861628e865c1477878f3277d10d.zip |
Changelog add and rename vars.
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gulpfile.js b/gulpfile.js index ad87586e5..3d28e7198 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -19,7 +19,7 @@ var manifest = require('./app/manifest.json') var gulpif = require('gulp-if') var replace = require('gulp-replace') -var production = gutil.env.production +var disableLiveReload = gutil.env.disableLiveReload // browser reload @@ -91,7 +91,7 @@ gulp.task('manifest:production', function() { './dist/chrome/manifest.json', './dist/edge/manifest.json', ],{base: './dist/'}) - .pipe(gulpif(production,jsoneditor(function(json) { + .pipe(gulpif(disableLiveReload,jsoneditor(function(json) { json.background.scripts = ["scripts/background.js"] return json }))) @@ -107,8 +107,8 @@ const staticFiles = [ var copyStrings = staticFiles.map(staticFile => `copy:${staticFile}`) -if (!production) { - copyStrings.push('copy:`reload`') +if (!disableLiveReload) { + copyStrings.push('copy:reload') } gulp.task('copy', gulp.series(gulp.parallel(...copyStrings), 'manifest:production', 'manifest:chrome')) @@ -205,7 +205,7 @@ function copyTask(opts){ destinations.forEach(function(destination) { stream = stream.pipe(gulp.dest(destination)) }) - stream.pipe(gulpif(production,livereload())) + stream.pipe(gulpif(disableLiveReload,livereload())) return stream } @@ -246,7 +246,7 @@ function bundleTask(opts) { .pipe(gulp.dest('./dist/firefox/scripts')) .pipe(gulp.dest('./dist/chrome/scripts')) .pipe(gulp.dest('./dist/edge/scripts')) - .pipe(gulpif(!production,livereload())) + .pipe(gulpif(!disableLiveReload,livereload())) ) } |