esbuild-plugin-summary
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

esbuild-plugin-summary

Plugin for esbuild to output the same build summary info (time and filesize) when using the API to build as the CLI.

Example output

Install

npm i esbuild esbuild-plugin-summary

Usage

import * as esbuild from "esbuild";
import { summaryPlugin } from "esbuild-plugin-summary";

esbuild.build({
  entryPoints: ["src/index.js"],
  outfile: "dist/index.js",
  plugins: [summaryPlugin()],
});

To include the sizes of the output files set includeSizes to true.

esbuild.build({
  entryPoints: ["src/index.js"],
  outfile: "dist/index.js",
  plugins: [summaryPlugin({ includeSizes: true })],
});

Package Sidebar

Install

npm i esbuild-plugin-summary

Weekly Downloads

908

Version

0.0.2

License

MIT

Unpacked Size

359 kB

Total Files

11

Last publish

Collaborators

  • devm33