1.3.4 • Published 10 months ago
rollup-plugin-stats v1.3.4
rollup-plugin-stats
Output Rollup stats JSON file
Install
npm install --dev rollup-plugin-statsor
yarn add --dev rollup-plugin-statsConfigure
// rollup.config.mjs
import stats from 'rollup-plugin-stats';
export default {
plugins: [
// add it as the last plugin
stats(),
],
};// rollup.config.js
const stats = require('rollup-plugin-stats');
module.exports = {
plugins: [
// add it as the last plugin
stats(),
],
};Options
fileName- the JSON filepath relative to the build folder or absolute(default:stats.json)write- format and write the stats to disk(default:fs.write(filename, JSON.stringify(stats, null, 2)))statssource- output asset/chunk/module source (defaultfalse)excludeAssets- exclude matching assets:string | RegExp | ((filepath: string) => boolean) | Array<string | RegExp | ((filepath: string) => boolean)>excludeModules- exclude matching modules:string | RegExp | ((filepath: string) => boolean) | Array<string | RegExp | ((filepath: string) => boolean)>
Related projects
rollup-plugin-webpack-stats
Generate rollup stats JSON file with a bundle-stats webpack supported structure.
bundle-stats
Analyze webpack stats(bundle size, assets, modules, packages) and compare the results between different builds. Support for webpack, rspack, vite, rollup.
:cyclone: relative-ci.com
Optimize your web app's performance with automated bundle stats analysis and monitoring.
- :crystal_ball: In-depth bundle stats analysis for every build
- :chart_with_upwards_trend: Monitor bundle stats changes and identify opportunities for optimizations
- :bell: Rule based automated review flow, or get notified via GitHub Pull Request comments, GitHub check reports and Slack messages
- :wrench: Support for webpack and beta support for Vite/Rollup
- :hammer: Support for all major CI services(CircleCI, GitHub Actions, Gitlab CI, Jenkins, Travis CI)
- :nut_and_bolt: Support for npm, yarn and pnpm; support for monorepos
- :two_hearts: Always free for Open Source
1.2.0
11 months ago
1.1.1
12 months ago
1.1.0
12 months ago
1.0.0
12 months ago
1.0.0-beta.3
12 months ago
1.3.4
10 months ago
1.3.3
10 months ago
1.3.2
11 months ago
1.3.1
11 months ago
1.2.2
11 months ago
1.0.0-beta.0
12 months ago
1.3.0
11 months ago
1.2.1
11 months ago
1.1.2
12 months ago
1.1.0-beta.1
12 months ago
1.1.0-beta.0
12 months ago
1.2.1-beta.0
11 months ago
1.2.1-beta.1
11 months ago
1.1.2-beta.0
12 months ago
0.1.0
3 years ago