Skip to content

Commit

Permalink
Merge pull request #33 from jesnil01/patch-1
Browse files Browse the repository at this point in the history
Remove source maps and comments from production
  • Loading branch information
jakemmarsh committed Mar 22, 2016
2 parents 4dd6178 + c2812be commit 5ea5285
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gulp/tasks/sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ 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)
.pipe(autoprefixer('last 2 versions', '> 1%', 'ie 8'))
.pipe(gulp.dest(config.styles.dest))
.pipe(gulpif(browserSync.active, browserSync.reload({ stream: true })));

});
});

0 comments on commit 5ea5285

Please sign in to comment.