Skip to content

Commit b51896d

Browse files
committed
Merge pull request #12 from sykopomp/master
Add close support
2 parents a95d1f6 + d80f73b commit b51896d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

middleware.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ module.exports = function(compiler, options) {
155155
webpackDevMiddleware.invalidate = function() {
156156
if(watching) watching.invalidate();
157157
};
158+
webpackDevMiddleware.close = function(callback) {
159+
callback = callback || function(){};
160+
if(watching) watching.close(callback);
161+
else callback();
162+
};
158163

159164
webpackDevMiddleware.fileSystem = fs;
160165

0 commit comments

Comments
 (0)