mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +00:00
[Build] Gracefully handle scss errors
Log errors in SCSS processing but don't crash watch process. Fixes https://github.com/nasa/openmctweb/issues/696
This commit is contained in:
18
gulpfile.js
18
gulpfile.js
@ -90,17 +90,15 @@ function customCompass() {
|
|||||||
css: baseDir + 'css/',
|
css: baseDir + 'css/',
|
||||||
comments: true,
|
comments: true,
|
||||||
bundle_exec: true
|
bundle_exec: true
|
||||||
},
|
};
|
||||||
compassObj;
|
|
||||||
|
|
||||||
compassObj = compass(options);
|
compass(options)
|
||||||
compassObj.on('data', function (file) {
|
.on('data', function (file) {
|
||||||
this.push(file);
|
this.push(file);
|
||||||
}.bind(this));
|
}.bind(this))
|
||||||
compassObj.on('end', function () {
|
.on('error', done)
|
||||||
done();
|
.on('end', done)
|
||||||
});
|
.end(chunk);
|
||||||
compassObj.end(chunk);
|
|
||||||
};
|
};
|
||||||
return compassWrapper;
|
return compassWrapper;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user