ncc
all
Compile a Node.js application into a single file. Supports TypeScript, binary addons, and dynamic requires.
More info →Options (3)
-m, --minifybooleanBundle and minify a Node.js application
Example:
ncc build {{[-m|--minify]}} {{path/to/file.js}}-s, --source-mapbooleanBundle and minify a Node.js application and generate source maps
Example:
ncc build {{[-s|--source-map]}} {{path/to/file.js}}-w, --watchbooleanAutomatically recompile on changes to source files
Example:
ncc build {{[-w|--watch]}} {{path/to/file.js}}Examples (6)
Bundle a Node.js application
ncc build path/to/file.jsBundle and minify a Node.js application
ncc build [-m|--minify] path/to/file.jsBundle and minify a Node.js application and generate source maps
ncc build [-s|--source-map] path/to/file.jsAutomatically recompile on changes to source files
ncc build [-w|--watch] path/to/file.jsBundle a Node.js application into a temporary directory and run it for testing
ncc run path/to/file.jsClean the `ncc` cache
ncc clean cachemade by @shridhargupta | data from tldr-pages