Permalink
Browse files

gulp-sourcemaps added

Use a map to find your way!
  • Loading branch information...
jasonrundell committed Oct 27, 2016
1 parent 4da9af7 commit 5db33d5d01a434cb37e9e83f0d9155c6b2e7cc50
Showing with 7 additions and 1 deletion.
  1. +2 −1 dist/css/style.css
  2. +1 −0 dist/maps/style.css.map
  3. +3 −0 gulpfile.js
  4. +1 −0 package.json
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,5 +1,6 @@
var gulp = require('gulp'),
sass = require('gulp-sass'),
sourcemaps = require('gulp-sourcemaps'),
del = require('del');
var gulpLoadPlugins = require('gulp-load-plugins');
var plugins = gulpLoadPlugins();
@@ -13,7 +14,9 @@ var appBrowser = 'chrome'; // others: 'google-chrome' (Linux), 'chrome' (Windows
// SASS
gulp.task('sass', function() {
return gulp.src(appSourceFolder + '/sass/style.scss')
.pipe(sourcemaps.init())
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
.pipe(sourcemaps.write('../maps'))
.pipe(gulp.dest(appDestinationFolder + '/css'))
.pipe(plugins.connect.reload())
.pipe(plugins.notify({ message: 'Styles task complete' }));
View
@@ -30,6 +30,7 @@
"gulp-pug": "^3.1.0",
"gulp-rename": "^1.2.0",
"gulp-sass": "^2.3.2",
"gulp-sourcemaps": "^2.2.0",
"gulp-uglify": "^1.0.2",
"node-sass": "^3.10.1"
},

0 comments on commit 5db33d5

Please sign in to comment.