From 2c8f1011bb2329f350396bbfe1c5486d4af7f719 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 27 Apr 2015 22:14:10 +0200 Subject: Working jsonp --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gulpfile.js') 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)); }); -- cgit v1.2.3