Class NiteBuilder
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
esbuildEsbuildServiceloggerILoggerloggerFactoryILoggerFactoryFor the stylesheet tools (Sass, PostCSS and friends) to report through.
httpHttpClientDownloads the Sass compiler the first time a project needs it.
Methods
BuildAsync(NiteProject, CancellationToken)
public Task<NiteManifest> BuildAsync(NiteProject project, CancellationToken cancellationToken = default)
Parameters
projectNiteProjectcancellationTokenCancellationToken