add analyze command for webpack bundle analyzer output
npm install vue-cli-plugin-bundleanalyzeradds separate analyze command in vue-cli-service which generates a Webpack Bundle Analyzer report.
```
vue-cli-service analyze
vue add bundleanalyzer
add a bundleanalyzer block to vue.config.js with valid options.
`js`
module.exports = {
pluginOptions: {
bundleAnalyzer: {
analyzerMode: 'static'
}
}
};
add additional command args to inject specific options
``
npx vue-cli-service analyze --openAnalyzer=false
or
``
npm run analyze -- --openAnalyzer=false
- config.plugin('bundleAnalyzer')`