0.0.2 • Published 8 months ago

esbuild-plugin-summary v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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 })],
});
0.0.2

8 months ago

0.0.1

8 months ago