rollup-plugin-filesize
A rollup plugin to show filesize in the cli
Last updated 4 months ago by ritz078 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rollup-plugin-filesize 
SYNC missed versions from official npm registry.

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

showMinifiedSize

type: boolean default: true

Whether to show minified size or not

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, bundle, { minSize, gzipSize, brotliSize, bundleSize }){
		return minSize;
	}
})

theme

type: string

default : 'dark'

options : 'dark'/'light'

choose based on your terminal theme.

License

MIT

Current Tags

  • 1.3.1                                ...           beta (3 years ago)
  • 6.2.1                                ...           latest (4 months ago)

32 Versions

  • 6.2.1                                ...           4 months ago
  • 6.2.0                                ...           6 months ago
  • 6.1.1                                ...           8 months ago
  • 6.1.0                                ...           9 months ago
  • 6.0.1                                ...           a year ago
  • 6.0.0                                ...           a year ago
  • 5.0.1                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.0.1                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.2                                ...           3 years ago
  • 1.4.1                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.2                                ...           3 years ago
  • 1.3.1                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.5.5                                ...           3 years ago
  • 0.5.4                                ...           3 years ago
  • 0.4.4                                ...           4 years ago
  • 0.3.4                                ...           4 years ago
  • 0.3.3                                ...           4 years ago
  • 0.3.2                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 4
This Week 28
This Month 260
Last Day 4
Last Week 127
Last Month 329
Dependencies (7)
Dev Dependencies (8)
Dependents (105)

Copyright 2014 - 2016 © taobao.org |