2.1.2 • Published 4 months ago

@blockquote/rollup-plugin-total-bundlesize v2.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

rollup-plugin-total-bundlesize

A rollup plugin that showing the total size of the bundle, it complements Vite's summary

reporter example

Installation

npm install @blockquote/rollup-plugin-total-bundlesize

Usage

import totalBundlesize from '@blockquote/rollup-plugin-total-bundlesize'

export default {
    entry: 'index.js',
    plugins: [
        totalBundlesize()
    ]
}

options

totalBundlesize( options?)

Type: object boxen options?

import totalBundlesize from 'rollup-plugin-total-bundlesize'

export default {
    entry: 'index.js',
    plugins: [
        totalBundlesize({title: 'magical', titleAlignment: 'center'})
    ]
}

License

MIT