mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 10:57:09 +00:00
Update cheatsheets
This commit is contained in:
6
tldr/ncc
6
tldr/ncc
@@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Bundle and minify a Node.js application:
|
||||
|
||||
`ncc build --minify {{path/to/file.js}}`
|
||||
`ncc build {{[-m|--minify]}} {{path/to/file.js}}`
|
||||
|
||||
- Bundle and minify a Node.js application and generate source maps:
|
||||
|
||||
`ncc build --source-map {{path/to/file.js}}`
|
||||
`ncc build {{[-s|--source-map]}} {{path/to/file.js}}`
|
||||
|
||||
- Automatically recompile on changes to source files:
|
||||
|
||||
`ncc build --watch {{path/to/file.js}}`
|
||||
`ncc build {{[-w|--watch]}} {{path/to/file.js}}`
|
||||
|
||||
- Bundle a Node.js application into a temporary directory and run it for testing:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user