From eaab70741ac795f3cecc4cb33dc4fe716131bdec Mon Sep 17 00:00:00 2001 From: Pete Richards Date: Mon, 22 Feb 2016 18:57:05 -0800 Subject: [PATCH] [Build] Generate CSS sourcemaps Generate CSS sourcemaps to aide in debugging. https://github.com/nasa/openmctweb/issues/698 --- .gitignore | 1 + gulpfile.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 5bbb396349..aacf7f9728 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ *.sass-cache *COMPILE.css *.css +*.css.map # Intellij project configuration files *.idea diff --git a/gulpfile.js b/gulpfile.js index 742b06977f..06d9222a42 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -87,11 +87,13 @@ gulp.task('test', function (done) { gulp.task('stylesheets', function () { return gulp.src(paths.scss, {base: '.'}) + .pipe(sourcemaps.init()) .pipe(sass(options.sass).on('error', sass.logError)) .pipe(rename(function (file) { file.dirname = file.dirname.replace('/sass', '/css'); return file; })) + .pipe(sourcemaps.write('.')) .pipe(gulp.dest(__dirname)); });