New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@block65/bundlesize

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@block65/bundlesize

Bundle file size analyzer.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

@block65/bundlesize

Bundle file size analyzer.

Installation

Install @block65/bundlesize using npm or pnpm:

npm install @block65/bundlesize

or

pnpm add @block65/bundlesize -D

Usage

Create a bundlesize.config.js configuration file specifying files to analyze and their maximum sizes.

Example configuration file:

module.exports = {
  files: [
    {
      path: 'dist/*.js',
      maxSize: '100 KB',
      compression: 'brotli'
    },
    {
      path: 'dist/vendor.js',
      maxSize: '500 KB'
    },
  ],
};

NOTE: Maximum sizes are in base 10.

To analyze bundle sizes, run:

npx @block65/bundlesize

or

pnpx @block65/bundlesize

License

@block65/bundlesize is MIT licensed. See LICENSE.md for details.

FAQs

Package last updated on 24 May 2023

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