diff options
author | Camil Staps | 2015-04-27 22:14:10 +0200 |
---|---|---|
committer | Camil Staps | 2015-04-27 22:14:10 +0200 |
commit | 2c8f1011bb2329f350396bbfe1c5486d4af7f719 (patch) | |
tree | 732a80b1b2eaa07734aa4e0deed714041bb85642 /gulpfile.js | |
parent | Jade <3, BotleaguesApi.js (diff) |
Working jsonp
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 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)); }); |