Forrest logo
back to context overview

esbuild

List of commands for esbuild:

  • esbuild:tldr:55aa7 esbuild: Bundle a list of files to an output directory.
    $ esbuild --bundle --outdir=${path-to-output_directory} ${filename1 filename2 ---}
    try on your machine
    explain this command
  • esbuild:tldr:74b21 esbuild: Bundle a JSX application from `stdin`.
    $ esbuild --bundle --outfile=${path-to-out-js} < ${filename-jsx}
    try on your machine
    explain this command
  • esbuild:tldr:8c686 esbuild: Bundle a JavaScript application for a specific node version.
    $ esbuild --bundle --platform=${node} --target=${node12} ${filename-js}
    try on your machine
    explain this command
  • esbuild:tldr:91d31 esbuild: Bundle and serve a JavaScript application on an HTTP server.
    $ esbuild --bundle --serve=${port} --outfile=${index-js} ${filename-js}
    try on your machine
    explain this command
  • esbuild:tldr:b03f9 esbuild: Bundle a JSX application for a comma-separated list of browsers.
    $ esbuild --bundle --minify --sourcemap --target=${chrome58,firefox57,safari11,edge16} ${filename-jsx}
    try on your machine
    explain this command
  • esbuild:tldr:c1840 esbuild: Bundle and minify a JSX application with source maps in `production` mode.
    $ esbuild --bundle --define:${process-env-NODE_ENV=\"production\"} --minify --sourcemap ${filename-js}
    try on your machine
    explain this command
  • esbuild:tldr:c861e esbuild: Bundle a JavaScript application enabling JSX syntax in `.js` files.
    $ esbuild --bundle app.js --loader:${-js=jsx} ${filename-js}
    try on your machine
    explain this command
  • esbuild:tldr:f56d6 esbuild: Bundle a JavaScript application and print to `stdout`.
    $ esbuild --bundle ${filename-js}
    try on your machine
    explain this command
back to context overview