@bundle-stats/utils
Common utilities for bundle-stats packages.
How to generate a weback report
import { createJobs, createReport } from '@bundle-stats/utils';
import * as webpack from '@bundle-stats/utils/lib/webpack';
const WEBPACK_STATS_CURRENT = {};
const WEBPACK_STATS_BASELINE = {};
const jobs = createJobs([
{ webpack: WEBPACK_STATS_CURRENT },
{ webpack: WEBPACK_STATS_BASELINE }
]);
const report = createReport(jobs);
console.log(report.insights.webpack.assetsSizeTotal.data.text);
>> Bundle size increased to 9.77KB (+100%).
Packages
Related projects
Specialized insights for web bundles:
- Monitor and analyze bundle size, assets, modules, packages
- GitHub Check, GitHub Pull Request, and Slack integrations
- Support for all major CI services (CircleCI, GitHub Actions, Travis CI CI, Jenkins, Gitlab CI, Codeship)
- Free for Developers & OpenSource
Try Beta
Standalone web application to compare Webpack/Lighthouse/Browsertime stats.
Compare bundle stats
Github Action that generates bundle-stats reports for webpack.