rollup-plugin-bundle-size

1.0.3 • Public • Published

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()
    ]
}

Dependencies (2)

Dev Dependencies (2)

Package Sidebar

Install

npm i rollup-plugin-bundle-size

Weekly Downloads

42,189

Version

1.0.3

License

MIT

Unpacked Size

3.38 kB

Total Files

6

Last publish

Collaborators

  • bdougherty
  • dashron