Overview
nf build compiles your NanoForge project. The client and server entry points, static directories,
and output directories all default to the values in your
configuration file and can be overridden per run.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Build your NanoForge project for production
nf build compiles your NanoForge project. The client and server entry points, static directories,
and output directories all default to the values in your
configuration file and can be overridden per run.
nf build
| Option | Description |
|---|---|
-d, --directory <directory> | Working directory of the command. |
-c, --config <config> | Path to the configuration file. |
--client-entry <clientEntry> | Entry file of the client. |
--server-entry <serverEntry> | Entry file of the server. |
--client-static-dir <clientStaticDir> | Static directory of the client. |
--server-static-dir <serverStaticDir> | Static directory of the server. |
--client-out-dir <clientOutDir> | Output directory of the client. |
--server-out-dir <serverOutDir> | Output directory of the server. |
--editor | Build with the editor configuration. |
--watch | Build in watch mode. Default: false. |
nf build
nf build --watch --client-out-dir dist/client