JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12630
  • Score
    100M100P100Q135970F
  • License MIT

A rollup plugin that summarizes the build

Package Exports

  • rollup-plugin-summary

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-summary) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

https://img.shields.io/npm/v/rollup-plugin-summary Commitizen friendly semantic-release Dependabot Status https://img.shields.io/github/languages/top/yousifalraheem/rollup-plugin-summary https://img.shields.io/npm/l/rollup-plugin-summary

rollup-plugin-summary

A rollup plugin that summarizes the output of the build. Under the hood, it uses rollup-plugin-filesize to calculate file sizes and display them in a tabular form using as-table and color it with chalk.

Installation


npm

npm i rollup-plugin-summary -D

yarn

yarn add rollup-plugin-summary -D

Usage

File: rollup.config.js

import summary from 'rollup-plugin-summary';

export default {
    plugins: [
        summary(),
    ]
}

Options

Name Type Description Default
warnLow number Minimum size in bytes to be highlighted in yellow 5000
warnHigh number Minimum size in bytes to be highlighted in red 10000
totalLow number Minimum total size in bytes to be highlighted in yellow 200000
totalHigh number Minimum total size in bytes to be highlighted in red 300000

License

MIT

Documentation

Read the documentation