Table of Contents

Class NiteBuilder

Namespace
Nite.Build
Assembly
Nite.dll

The production build: islands, configured entries and the island loader bundled together in a single esbuild pass (minified, code-split, content-hashed) into wwwroot/_nite.

public sealed class NiteBuilder
Inheritance
NiteBuilder
Inherited Members

Constructors

NiteBuilder(EsbuildService, ILogger?, ILoggerFactory?, HttpClient?)

The production build: islands, configured entries and the island loader bundled together in a single esbuild pass (minified, code-split, content-hashed) into wwwroot/_nite.

public NiteBuilder(EsbuildService esbuild, ILogger? logger = null, ILoggerFactory? loggerFactory = null, HttpClient? http = null)

Parameters

esbuild EsbuildService
logger ILogger
loggerFactory ILoggerFactory

For the stylesheet tools (Sass, PostCSS and friends) to report through.

http HttpClient

Downloads the Sass compiler the first time a project needs it.

Methods

BuildAsync(NiteProject, CancellationToken)

public Task<NiteManifest> BuildAsync(NiteProject project, CancellationToken cancellationToken = default)

Parameters

project NiteProject
cancellationToken CancellationToken

Returns

Task<NiteManifest>