Skip to content

porsager/rollup-plugin-filesize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-filesize

A rollup plugin to show filesize in the cli

Installation

npm install rollup-plugin-filesize

Usage

import { rollup } from 'rollup';
import filesize from 'rollup-plugin-filesize';

rollup({
  entry: 'main.js',
  plugins: [
    filesize()
  ]
}).then(...)

options

showGzippedSize

type: boolean default: true

Whether to show Gzipped size or not

showBrotliSize

type: boolean default: false

Whether to show Brotli size or not

format

type : object

default : {}

See the options here

render

type : function

return the command that you want to log. Eg:

filesize({
	render : function (options, size){
		return size;
	}
})

theme

type: string

default : 'dark'

options : 'dark'/'light'

choose based on your terminal theme.

License

MIT

About

A rollup plugin to show file size of the bundle in the cli

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%