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(`

\u2705 \u914D\u7F6E \u6253\u5305\u5206\u6790

javascript
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',
                },
            ])
        }
    },
}
bash
npm run build
`,3),e=[o];function c(t,r,F,y,D,i){return a(),n("div",null,e)}const C=s(p,[["render",c]]);export{d as __pageData,C as default};