ui: webpack: add webpackbar

This commit is contained in:
undefined committed 2021-05-09 12:54:54 +08:00
1 parent e10f3de562
commit 05ea014b79
5 files changed
+7 -247

No files matched your search

+2 -5
View File
@@ -18,7 +18,7 @@ function runWebpack({
compress: true,
hot: true,
disableHostCheck: true,
stats: 'errors-warnings',
stats: 'none',
index: '',
proxy: {
context: () => true,
@@ -60,10 +60,7 @@ async function runGulp() {
gulp.on('stop', ({ uid, name }) => {
log(chalk.green('Finished: %s'), chalk.reset(name));
taskList[uid] = false;
if (Object.values(taskList).filter((b) => b).length === 0) {
resolve();
}
if (Object.values(taskList).filter((b) => b).length === 0) resolve();
});
gulpTasks.default();
});