Skip to content

Commit f41d12e

Browse files
sliweyevilebottnawi
authored andcommitted
fix: webpack watching does not recover after broken less is fixed (#289)
1 parent dbff214 commit f41d12e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/processResult.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ function processResult(loaderContext, resultPromise) {
2222
};
2323
},
2424
(lessError) => {
25+
if (lessError.filename) {
26+
loaderContext.addDependency(lessError.filename);
27+
}
2528
throw formatLessError(lessError);
2629
}
2730
)

0 commit comments

Comments
 (0)