diff --git a/gulpfile.coffee b/gulpfile.coffee index e126b99..51a6232 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -70,19 +70,17 @@ gulp.task 'templates', -> pipeline gulp.task 'styles', -> - styles = gulp - .src config.styles.source - .pipe sourcemaps.init() - .pipe stylus + styles = gulp.src config.styles.source + styles = styles.pipe(sourcemaps.init()) unless production + styles = styles.pipe stylus 'include css': true .on 'error', handleError .pipe prefix 'last 2 versions', 'Chrome 34', 'Firefox 28', 'iOS 7' styles = styles.pipe(CSSmin()) if production - styles = styles - .pipe sourcemaps.write('.') - .pipe gulp.dest config.styles.destination + styles = styles.pipe(sourcemaps.write '.') unless production + styles = styles.pipe gulp.dest config.styles.destination styles = styles.pipe livereload(auto: false) unless production styles