rollup-plugin-bundle-size

Output the size of your bundle

MIT 4 个版本
安装
npm install rollup-plugin-bundle-size
yarn add rollup-plugin-bundle-size
pnpm add rollup-plugin-bundle-size
bun add rollup-plugin-bundle-size
README

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()
    ]
}
版本列表
1.0.3 2019-01-17
1.0.2 2018-08-17
1.0.1 2016-08-24
1.0.0 2016-08-22