From 73c9ef55a8909fb5b47a4ce0f04b5d6d3b6f67b1 Mon Sep 17 00:00:00 2001 From: john-Graham Date: Tue, 12 Jun 2018 09:34:33 -0500 Subject: [PATCH] Adding SourceMaps --- gulpfile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 688a953..6de5cf8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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'), @@ -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/')) @@ -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/'))