rollup-plugin-bundle-size

v1.0.3
Output the size of your bundle
rollup-plugin

rollup-plugin-bundle-size npm

A rollup plugin to show the size of the generated bundle(s).

Installation

npm install --save-dev rollup-plugin-bundle-size

Usage

JS API

const rollup = require('rollup');
const bundleSize = require('rollup-plugin-bundle-size');

rollup.rollup({
    entry: 'src/index.js',
    plugins: [
        bundleSize()
    ]
}).then((bundle) => {
    ...
});

Config File

import bundleSize from 'rollup-plugin-bundle-size';

export default {
    entry: 'src/index.js',
    plugins: [
        bundleSize()
    ]
}
npm i rollup-plugin-bundle-size

Metadata

  • MIT
  • Whatever
  • Brad Dougherty
  • released 1/17/2019

Downloads