Skip to content

Repository files navigation

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*asesbuildfrom"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})],});

About

esbuild plugin for showing build summary: time and size

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages