@bundle-stats/html-templates

中文文档
4.23.1发布于 2026/11/03MITTypeScriptCommonJS零依赖构建来源已验证近 30 天下载 133.2万

HTML templates for report generation.

原始使用文档
文档目录10 节
  1. Related projects
  2. :cyclone: relative-ci.com
  3. :first_quarter_moon: relative-ci/compare
  4. :zap: bundle-stats-action
  5. Packages
  6. bundle-stats
  7. bundle-stats-webpack-plugin
  8. gatsby-plugin-bundle-stats
  9. next-plugin-bundle-stats
  10. rollup-plugin-bundle-stats

@bundle-stats/html-templates

Relative CI

HTML report for bundle-stats

:cyclone: relative-ci.com

Automated bundle analysis, reviews and monitoring - Quickly identify and fix bundle regressions before shipping to production.

:rocket: Get started

:first_quarter_moon: relative-ci/compare

Standalone web application to compare Webpack/Lighthouse/Browsertime stats.

Compare bundle stats

:zap: bundle-stats-action

Github Action that generates bundle-stats reports.

Packages

bundle-stats

npm npm

CLI to generate bundle stats report.

bundle-stats-webpack-plugin

npm npm

Webpack plugin to generate bundle stats report for webpack/rspack.

gatsby-plugin-bundle-stats

npm npm

Gatsby plugin for bundle-stats.

next-plugin-bundle-stats

npm npm

Next.js plugin for bundle-stats.

rollup-plugin-bundle-stats

npm npm

Rollup plugin to generate bundle stats report for vite/rolldown/rollup.

版本与发布记录

@bundle-stats/html-templates 共发布 574 个版本,首次发布于 2019/05/24;过去 12 个月发布了 26 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
4.23.1latest2026/11/035 天前
4.23.0-beta.11beta2026/11/017 天前
4.23.0-beta.102026/10/2218 天前
4.23.0-beta.92026/10/1425 天前
4.23.0-beta.82026/10/071 个月前
4.23.0-beta.72026/10/021 个月前

其他发布通道:next → 2.0.0-rc.3,rc → 4.13.0-rc.2,alpha → 4.21.10-alpha.0,beta → 4.23.0-beta.11。

关于 @bundle-stats/html-templates 的常见问题

@bundle-stats/html-templates 是什么?

HTML templates for report generation.

如何安装 @bundle-stats/html-templates?

在项目目录运行 npm install @bundle-stats/html-templates,或使用 pnpm add / yarn add / bun add。

@bundle-stats/html-templates 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@bundle-stats/html-templates 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@bundle-stats/html-templates 可以商用吗?

@bundle-stats/html-templates 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@bundle-stats/html-templates 的下载量有多少?

根据 npm 官方下载统计,@bundle-stats/html-templates 在 2026/10/09 – 2026/11/07 这 30 天内被下载 1,331,679 次,日均约 44,389 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bundle-stats/html-templates 还在维护吗?

最新版本 4.23.1 发布于 2026/11/03(5 天前);至今共发布 574 个版本,其中过去 12 个月发布了 26 个;首次发布于 2019/05/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。