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
Click to show internal directories.
Click to hide internal directories.