From c2812bef92c7f77145654ea55392a1e387281f76 Mon Sep 17 00:00:00 2001 From: Jesper Nilsson Date: Tue, 22 Mar 2016 14:08:19 +0100 Subject: [PATCH] Remove source maps and comments from production --- gulp/tasks/sass.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gulp/tasks/sass.js b/gulp/tasks/sass.js index 5793149..b351e79 100644 --- a/gulp/tasks/sass.js +++ b/gulp/tasks/sass.js @@ -12,8 +12,8 @@ gulp.task('sass', function() { return gulp.src(config.styles.src) .pipe(sass({ - sourceComments: global.isProd ? 'none' : 'map', - sourceMap: 'sass', + sourceComments: global.isProd ? false : 'map', + sourceMap: global.isProd ? false : 'sass', outputStyle: global.isProd ? 'compressed' : 'nested' })) .on('error', handleErrors) @@ -21,4 +21,4 @@ gulp.task('sass', function() { .pipe(gulp.dest(config.styles.dest)) .pipe(gulpif(browserSync.active, browserSync.reload({ stream: true }))); -}); \ No newline at end of file +});