aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorCamil Staps2015-04-27 22:14:10 +0200
committerCamil Staps2015-04-27 22:14:10 +0200
commit2c8f1011bb2329f350396bbfe1c5486d4af7f719 (patch)
tree732a80b1b2eaa07734aa4e0deed714041bb85642 /gulpfile.js
parentJade <3, BotleaguesApi.js (diff)
Working jsonp
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 2abb17e..3c3e596 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -23,6 +23,8 @@ var gulp = require('gulp'),
var bootswatch_theme = 'superhero';
+var production = false;
+
gulp.task('default', [], function() {
gulp.start('styles', 'scripts', 'images', 'jade');
});
@@ -127,7 +129,7 @@ gulp.task('scripts', function(){
gulp.src(src)
.pipe(changed(dst))
- .pipe(stripdebug())
+ .pipe(gulpif(production, stripdebug()))
.pipe(uglify())
.pipe(gulp.dest(dst));
});