Show progress.

This commit is contained in:
Dillon Kearns 2019-08-22 05:49:12 -07:00
parent 212291f550
commit 987e74711e

View File

@ -108,6 +108,15 @@ function webpackOptions(production, routes, { debug, manifestConfig }) {
entry: { hello: "./index.js" },
mode: production ? "production" : "development",
plugins: [
new webpack.ProgressPlugin({
entries: true,
modules: true,
modulesCount: 100,
profile: true,
handler: (percentage, message, ...args) => {
printProgress(`${Math.floor(percentage * 100)}%`, message);
}
}),
new AddFilesPlugin(),
new CopyPlugin([
{