Skip to content

Commit

Permalink
Remove source maps and comments from production
Browse files Browse the repository at this point in the history
  • Loading branch information
jesnil01 committed Mar 22, 2016
1 parent 4dd6178 commit c2812be
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 c2812be

Please sign in to comment.