add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

29
pages.zh/common/ncc.md Normal file
View File

@@ -0,0 +1,29 @@
# ncc
> 将 Node.js 应用程序编译成单个文件。
> 支持 TypeScript、二进制插件和动态引用。
> 更多信息:<https://github.com/vercel/ncc>。
- 打包 Node.js 应用程序:
`ncc build {{path/to/file.js}}`
- 打包并压缩 Node.js 应用程序:
`ncc build --minify {{path/to/file.js}}`
- 打包、压缩 Node.js 应用程序并生成源映射:
`ncc build --source-map {{path/to/file.js}}`
- 在源文件更改时自动重新编译:
`ncc build --watch {{path/to/file.js}}`
- 将 Node.js 应用程序打包到临时目录并运行以进行测试:
`ncc run {{path/to/file.js}}`
- 清理 `ncc` 缓存:
`ncc clean cache`