import{_ as s,c as n,o as a,a as l}from"./app.2b769fcb.js";const d=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[{"level":3,"title":"","slug":"\u2705-\u914D\u7F6E-\u6253\u5305\u5206\u6790"}],"relativePath":"guide/vue2/bundle.md","lastUpdated":1661153879000}'),p={name:"guide/vue2/bundle.md"},o=l(`
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
module.exports = {
chainWebpack: config => {
// \u6253\u5305\u5206\u6790
if (IS_PROD) {
config.plugin('webpack-report').use(BundleAnalyzerPlugin, [
{
analyzerMode: 'static',
},
])
}
},
}
npm run build