
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
next-plugin-bundle-stats
Advanced tools
In-depth bundle analyzer for webpack(bundle size, assets, modules)
Demos: Bundle analysis comparison · Bundle analysis
- Bundle size and totals by file type(css, js, img, etc)
- Insights: duplicate packages, new packages
- Initial JS/CSS, Cache invalidation, and other bundle metrics
- Assets report (entrypoint, initial, types, changed, delta)
- Modules report (changed, delta, chunks, duplicate count and percentage)
- Packages report (count, duplicate, changed, delta)
:star: Side by side comparison for multiple builds
Analyze Next.JS bundle stats(bundle size, assets, modules, packages) and compare the results between different builds.
npm install --dev next-plugin-bundle-stats
or
yarn add --dev next-plugin-bundle-stats
See bundle-stats-webpack-plugin options.
// In your next.config.js
const createBundleStatsPlugin = require('next-plugin-bundle-stats');
const withBundleStatsPlugin = createBundleStatsPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {};
module.exports = withBundleStatsPlugin(nextConfig);
or with custom options:
// In your next.config.js
const createBundleStatsPlugin = require('next-plugin-bundle-stats');
const withBundleStatsPlugin = createBundleStatsPlugin({
outDir: '../artifacts'
});
/** @type {import('next').NextConfig} */
const nextConfig = {};
module.exports = withBundleStatsPlugin(nextConfig);
bundle-stats
CLI to generate bundle stats report.
bundle-stats-webpack-plugin
Webpack plugin to generate bundle stats report for webpack/rspack.
gatsby-plugin-bundle-stats
Gatsby plugin for bundle-stats.
rollup-plugin-bundle-stats
Rollup plugin to generate bundle stats report for vite/rolldown/rollup.
Standalone web application to compare Webpack/Lighthouse/Browsertime stats.
Github Action that generates bundle-stats reports.
FAQs
In-depth bundle analyzer for webpack(bundle size, assets, modules)
The npm package next-plugin-bundle-stats receives a total of 4,552 weekly downloads. As such, next-plugin-bundle-stats popularity was classified as popular.
We found that next-plugin-bundle-stats demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.