Package Exports
- @bundle-stats/utils
- @bundle-stats/utils/lib-esm/browsertime
- @bundle-stats/utils/lib-esm/lighthouse
- @bundle-stats/utils/lib-esm/webpack
- @bundle-stats/utils/lib/webpack
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 (@bundle-stats/utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@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';
// Get webpack stats data
const WEBPACK_STATS_CURRENT = {/* ... */};
const WEBPACK_STATS_BASELINE = {/* ... */};
// Create jobs
const jobs = createJobs([
{ webpack: WEBPACK_STATS_CURRENT },
{ webpack: WEBPACK_STATS_BASELINE }
]);
// Create report
const report = createReport(jobs);
console.log(report.insights.webpack.assetsSizeTotal.data.text);
>> Bundle size increased to 9.77KB (+100%).Packages
Related projects
relative-ci.com
Continuous monitoring for webpack bundles:
- Monitor and analyze bundle size, assets, modules, packages
- Github Checks, Slack integration
- Support for all major CI services (Travis CI, Circle CI, Jenkins, Gitlab CI, Codeship, etc)
- Free for OpenSource
relative-ci/compare
Standalone web application to compare Webpack/Lighthouse/Browsertime stats.
bundle-stats-action
Github Action that generates bundle-stats reports for webpack.