/rollup-plugin-stats

Output Rollup stats JSON file

Primary LanguageTypeScriptMIT LicenseMIT

rollup-plugin-stats

Warning Under active development

CI

Output Rollup stats JSON file

Install

npm install --dev rollup-plugin-stats

or

yarn add --dev rollup-plugin-stats

Configure

// rollup.config.js
const { rollupStats } = require('rollup-plugin-stats');

module.exports = {
  plugins: [
    // add it as the last plugin
    rollupStats(),
  ],
};

Options

  • filename - the JSON filename relative to the build folder, default: stats.json