A rollup plugin to show filesize in the cli
npm install rollup-plugin-filesize
import { rollup } from 'rollup';
import filesize from 'rollup-plugin-filesize';
rollup({
entry: 'main.js',
plugins: [
filesize()
]
}).then(...)
type: boolean
default: true
Whether to show Gzipped size or not
type: boolean
default: false
Whether to show Brotli size or not
type : object
default : {}
See the options here
type : function
return the command that you want to log. Eg:
filesize({
render : function (options, size){
return size;
}
})
type: string
default : 'dark'
options : 'dark'/'light'
choose based on your terminal theme.
MIT