Trousers

@trousers/rolldown

@trousers/rolldown

Default export

Source

Extract static CSS with Rolldown and emit a stylesheet for styles retained in the build.

ts
function trousers({ emitCss, cssFileName, }?: TrousersOptions): Plugin;

TrousersOptions

Source

Configure the stylesheet emitted by the Rolldown plugin.

ts
export interface TrousersOptions {
    emitCss?: boolean;
    cssFileName?: string;
}
emitCss

Disable CSS for an SSR build that shares the client stylesheet.

cssFileName

Output path relative to the build directory.