Skip to content

Commit

Permalink
Adding SourceMaps
Browse files Browse the repository at this point in the history
  • Loading branch information
john-Graham committed Jun 12, 2018
1 parent fd095b7 commit 73c9ef5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
jshint = require('gulp-jshint'),
sass = require('gulp-sass'),
sourcemaps = require('gulp-sourcemaps'),
imagemin = require('gulp-imagemin'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify'),
Expand Down Expand Up @@ -56,6 +57,7 @@ gulp.task('images', function() {
gulp.task('scss', function() {
return gulp.src( './'+src+'scss/**/*.scss')
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
.pipe(sourcemaps.write())
.pipe(rename({suffix: '.min'}))
.pipe(autoprefixer({browsers: ['last 2 versions', 'ie >= 9', '> 1%']}))
.pipe(gulp.dest( './'+dist+'/css/'))
Expand All @@ -67,6 +69,7 @@ gulp.task('scss', function() {
gulp.task('bscss', function() {
return gulp.src('./'+src+assets+'bootstrap/scss/**/*.scss')
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
.pipe(sourcemaps.write())
.pipe(rename({suffix: '.min'}))
.pipe(autoprefixer({browsers: ['last 2 versions', 'ie >= 9', '> 1%']}))
.pipe(gulp.dest( './'+dist+'css/'))
Expand Down

0 comments on commit 73c9ef5

Please sign in to comment.