Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-28 00:20:19 +00:00
parent 5bf37ece1a
commit 2c0f4bfdb2
88 changed files with 330 additions and 253 deletions

View File

@@ -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: