chore: It is possible to shorten build times by removing ProgressPlugin

This commit is contained in:
lin onetwo 2021-10-01 02:19:47 +08:00
parent 84321727d8
commit b0e9da434d

View file

@ -44,7 +44,7 @@ exports.main = _.compact([
target: 'electron-node-worker',
plugins: ['ExternalsPlugin'],
}),
new WebpackBar(),
process.env.NODE_ENV === 'production' ? undefined : new WebpackBar(),
process.env.NODE_ENV === 'production'
? // eslint-disable-next-line @typescript-eslint/no-unsafe-call
new BundleAnalyzerPlugin({ generateStatsFile: true, analyzerMode: 'disabled', statsFilename: '../../out/webpack-stats-main.json' })
@ -72,7 +72,7 @@ exports.renderer = _.compact([
},
},
),
new WebpackBar(),
process.env.NODE_ENV === 'production' ? undefined : new WebpackBar(),
process.env.NODE_ENV === 'production'
? // eslint-disable-next-line @typescript-eslint/no-unsafe-call
new BundleAnalyzerPlugin({ generateStatsFile: true, analyzerMode: 'disabled', statsFilename: '../../out/webpack-stats-renderer.json' })