mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
[Build] Generate CSS sourcemaps
Generate CSS sourcemaps to aide in debugging. https://github.com/nasa/openmctweb/issues/698
This commit is contained in:
parent
a05d6d8ee8
commit
eaab70741a
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,7 @@
|
||||
*.sass-cache
|
||||
*COMPILE.css
|
||||
*.css
|
||||
*.css.map
|
||||
|
||||
# Intellij project configuration files
|
||||
*.idea
|
||||
|
@ -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));
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user