aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
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));
});