Skip to content

Commit

Permalink
fix: webpack watching does not recover after broken less is fixed (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliwey authored and evilebottnawi committed Mar 25, 2019
1 parent dbff214 commit f41d12e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/processResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ function processResult(loaderContext, resultPromise) {
};
},
(lessError) => {
if (lessError.filename) {
loaderContext.addDependency(lessError.filename);
}
throw formatLessError(lessError);
}
)
Expand Down

0 comments on commit f41d12e

Please sign in to comment.