mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(webpack): analyze report path (#20878)
This commit is contained in:
parent
9683c3dad3
commit
e3af77253d
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user