Skip to content

Commit d2dd52d

Browse files
committed
fix gulp crashing when scss file deleted/moved
1 parent 922a01e commit d2dd52d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web-app/gulpfile.js/utils/gulp-continuous-sass-inheritance.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ function gulpBetterSassInheritance(options) {
5050
buildGraph();
5151
}
5252

53+
if (currentFile.isNull()) {
54+
buildGraph();
55+
return;
56+
}
57+
5358
graph.addFile(currentFile.path);
5459

5560
if (currentFile && currentFile.contents.length) {

0 commit comments

Comments
 (0)