šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

vue-cli-plugin-bundleanalyzer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-cli-plugin-bundleanalyzer

add analyze command for webpack bundle analyzer output

1.0.0
latest
Source
npm
Version published
Weekly downloads
36
28.57%
Maintainers
1
Weekly downloads
Ā 
Created
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

vue

FAQs

Package last updated on 04 Jul 2021

Did you know?

Socket

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