@atomico/rollup-plugin-sizes
This small utility allows you to monitor the size of the bundle
Last updated 5 years ago by uppercod .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @atomico/rollup-plugin-sizes 
SYNC missed versions from official npm registry.

@atomico/rollup-plugin-sizes

This small utility allows you to monitor the size of the bundle as it is generated by rollup, generating a record by console, the size of both in gzip and brotli.

example

import sizes from "@atomico/rollup-plugins-sizes";

export default {
  input: /*...*/,
  output: /*...*/,
  plugins: [
    sizes(10)//10 === 10kb
  ]
};

Additionally you can give sizes(limit:number|string) a first parameter capable of generating alerts by console, example size(1.2), this parameter will always represent KB.

  1. if it exceeds the limit, the file will be printed in red.
  2. If it approaches 90% of the limit, it will be printed in yellow.
  3. if it does not fulfill the 2 previous conditions, it is printed in green.

compatible with dynamic rollup import

Current Tags

  • 1.1.4                                ...           latest (5 years ago)

8 Versions

  • 1.1.4                                ...           5 years ago
  • 1.1.3                                ...           5 years ago
  • 1.1.2                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE