fix(webpack): analyze report path (#20878)

This commit is contained in:
Anthony Fu 2023-05-16 15:47:12 +02:00 committed by GitHub
parent 9683c3dad3
commit e3af77253d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ function clientPlugins (ctx: WebpackConfigContext) {
// webpack Bundle Analyzer // webpack Bundle Analyzer
// https://github.com/webpack-contrib/webpack-bundle-analyzer // https://github.com/webpack-contrib/webpack-bundle-analyzer
if (!ctx.isDev && ctx.name === 'client' && options.webpack.analyze) { if (!ctx.isDev && ctx.name === 'client' && options.webpack.analyze) {
const statsDir = resolve(options.buildDir, 'stats') const statsDir = resolve(options.analyzeDir)
config.plugins!.push(new BundleAnalyzerPlugin({ config.plugins!.push(new BundleAnalyzerPlugin({
analyzerMode: 'static', analyzerMode: 'static',