esbuild

command
v0.0.0-...-525ce2e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Command esbuild bundles and minifies stylesheet and typescript files.

The command will walk the directory it is run in to gather the set of entrypoints and filenames beginning with an underscore are ignored.

go run golang.org/x/telemetry/godev/devtools/cmd/esbuild

You can also pass a directory as an argument to the command.

go run golang.org/x/telemetry/godev/devtools/cmd/esbuild directory

By default the command writes the output files to the same directory as the entrypoints with .min.css or .min.js extensions for .css and .ts files respectively. Override the output directory with a flag.

go run golang.org/x/telemetry/godev/devtools/cmd/esbuild --outdir static

To watch the entrypoints and rebuild the output files on changes use the watch flag.

go run golang.org/x/telemetry/godev/devtools/cmd/esbuild --watch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL