adds 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.
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')