feat: add progress bar

https://github.com/unjs/webpackbar
This commit is contained in:
林一二 2021-07-29 20:30:34 +08:00
parent e46c0b28d3
commit 44e56246d9
3 changed files with 42 additions and 1 deletions

View file

@ -11,6 +11,7 @@ const CopyPlugin = require('copy-webpack-plugin');
const ThreadsPlugin = require('threads-plugin');
const ExternalsPlugin = require('webpack5-externals-plugin');
const EventHooksPlugin = require('event-hooks-webpack-plugin');
const WebpackBar = require('webpackbar');
exports.main = _.compact([
// we only need one instance of TsChecker, it will check main and renderer all together
@ -49,6 +50,7 @@ exports.main = _.compact([
target: 'electron-node-worker',
plugins: ['ExternalsPlugin'],
}),
new WebpackBar(),
]);
exports.renderer = [
@ -71,4 +73,5 @@ exports.renderer = [
},
},
),
new WebpackBar(),
];