$ cnpm install rollup-plugin-bundle-size
A rollup plugin to show the size of the generated bundle(s).
npm install --save-dev rollup-plugin-bundle-size
const rollup = require('rollup');
const bundleSize = require('rollup-plugin-bundle-size');
rollup.rollup({
entry: 'src/index.js',
plugins: [
bundleSize()
]
}).then((bundle) => {
...
});
import bundleSize from 'rollup-plugin-bundle-size';
export default {
entry: 'src/index.js',
plugins: [
bundleSize()
]
}
Copyright 2013 - present © cnpmjs.org | Home |