nav tabs on admin dashboard
This commit is contained in:
28
node_modules/webpack/lib/MultiWatching.js
generated
vendored
28
node_modules/webpack/lib/MultiWatching.js
generated
vendored
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
const asyncLib = require("async");
|
||||
const asyncLib = require("neo-async");
|
||||
|
||||
class MultiWatching {
|
||||
constructor(watchings, compiler) {
|
||||
@@ -13,19 +13,25 @@ class MultiWatching {
|
||||
}
|
||||
|
||||
invalidate() {
|
||||
this.watchings.forEach((watching) => watching.invalidate());
|
||||
for (const watching of this.watchings) {
|
||||
watching.invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
close(callback) {
|
||||
if(callback === undefined) callback = () => { /*do nothing*/ };
|
||||
|
||||
asyncLib.forEach(this.watchings, (watching, finishedCallback) => {
|
||||
watching.close(finishedCallback);
|
||||
}, err => {
|
||||
this.compiler.applyPlugins("watch-close");
|
||||
callback(err);
|
||||
});
|
||||
|
||||
asyncLib.forEach(
|
||||
this.watchings,
|
||||
(watching, finishedCallback) => {
|
||||
watching.close(finishedCallback);
|
||||
},
|
||||
err => {
|
||||
this.compiler.hooks.watchClose.call();
|
||||
if (typeof callback === "function") {
|
||||
this.compiler.running = false;
|
||||
callback(err);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user