Namespace Nite
Classes
- NiteConfig
The contents of
nite.json. Both the middleware and theniteCLI read it, so dev and production builds agree on what gets compiled.
- NiteConfigFile
Edits the dependency sections of
nite.jsonin place. Only the section being changed is rewritten, so comments and formatting elsewhere in the file survive; comments inside that one section do not.
- NiteCssConfig
The
csssection ofnite.json.
- NiteEnvironment
Public environment variables for client code, the way Vite does it: values come from
.env,.env.local,.env.[mode]and.env.[mode].localin the project folder (later files win) and from the process environment (which wins over files), but only keys with one of the configured prefixes reach the browser. Everything else stays on the server.
- NiteProject
A project directory with its
nite.jsonand the absolute paths derived from it.