Socket
Socket
Sign inDemoInstall

vue-cli-plugin-bundleanalyzer

Package Overview
Dependencies
20
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-cli-plugin-bundleanalyzer

add analyze command for webpack bundle analyzer output


Version published
Maintainers
1
Install size
2.18 MB
Created

Readme

Source

vue-cli-plugin-bundleanalyzer

adds separate analyze command in vue-cli-service which generates a Webpack Bundle Analyzer report.

vue-cli-service analyze

Installation

vue add bundleanalyzer

Options with vue.config.js

add a bundleanalyzer block to vue.config.js with valid options.

module.exports = {
  pluginOptions: {
    bundleAnalyzer: {
      analyzerMode: 'static'
    }
  }
};

Configuration with command args

add additional command args to inject specific options

npx vue-cli-service analyze --openAnalyzer=false

or

npm run analyze -- --openAnalyzer=false

Injected webpack-chain Rules

  • config.plugin('bundleAnalyzer')

Keywords

FAQs

Last updated on 04 Jul 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc