Table of Contents

Class CssPipeline

Namespace
Nite.Css
Assembly
Nite.dll

What happens to a stylesheet before esbuild bundles it, in the order Vite does it: Sass or Less by extension, then Tailwind (when the file uses it), then the project's PostCSS config. esbuild does the rest (inlining @import, scoping CSS modules, url() assets, lowering, minifying), both in the dev server and in production builds, so the two agree.

public sealed class CssPipeline : IAsyncDisposable
Inheritance
CssPipeline
Implements
Inherited Members

Constructors

CssPipeline(NiteProject, EsbuildService, HttpClient, ILoggerFactory)

public CssPipeline(NiteProject project, EsbuildService esbuild, HttpClient http, ILoggerFactory loggerFactory)

Parameters

project NiteProject
esbuild EsbuildService
http HttpClient
loggerFactory ILoggerFactory

Methods

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

Returns

ValueTask

A task that represents the asynchronous dispose operation.

IsCssModule(string)

public static bool IsCssModule(string path)

Parameters

path string

Returns

bool

IsStylesheet(string)

public static bool IsStylesheet(string path)

Parameters

path string

Returns

bool