From 41decb4d8f64ccb0d5ce71d0cc1d8d37c1a31662 Mon Sep 17 00:00:00 2001 From: sliwey Date: Mon, 25 Mar 2019 17:04:31 +0800 Subject: [PATCH] fix: webpack watching does not recover after broken less is fixed --- src/processResult.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/processResult.js b/src/processResult.js index 9b91e0e7..1b9bdd16 100644 --- a/src/processResult.js +++ b/src/processResult.js @@ -22,6 +22,9 @@ function processResult(loaderContext, resultPromise) { }; }, (lessError) => { + if (lessError.filename) { + loaderContext.addDependency(lessError.filename); + } throw formatLessError(lessError); } )