Table of Contents

Namespace Nite

Classes

LessOptions
NiteConfig

The contents of nite.json. Both the middleware and the nite CLI read it, so dev and production builds agree on what gets compiled.

NiteConfigFile

Edits the dependency sections of nite.json in 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 css section of nite.json.

NiteEnvironment

Public environment variables for client code, the way Vite does it: values come from .env, .env.local, .env.[mode] and .env.[mode].local in 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.

NiteExtensions
NiteHealthCheckExtensions
NiteOptions
NitePreprocessorOptions
NiteProject

A project directory with its nite.json and the absolute paths derived from it.

SassOptions

Enums

NiteMode