[Build] Generate CSS sourcemaps

Generate CSS sourcemaps to aide in debugging.

https://github.com/nasa/openmctweb/issues/698
This commit is contained in:
Pete Richards 2016-02-22 18:57:05 -08:00
parent a05d6d8ee8
commit eaab70741a
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@ -8,6 +8,7 @@
*.sass-cache
*COMPILE.css
*.css
*.css.map
# Intellij project configuration files
*.idea

View File

@ -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));
});