UNPKG

@nx/rspack

Version:

The Nx Plugin for Rspack contains executors and generators that support building applications using Rspack.

23 lines (22 loc) 850 B
import { Configuration } from '@rspack/core'; import { ExtraEntryPointClass } from './model'; import { NxRspackExecutionContext } from './config'; export interface WithWebOptions { baseHref?: string; deployUrl?: string; extractCss?: boolean; generateIndexHtml?: boolean; index?: string; postcssConfig?: string; sassImplementation?: 'sass' | 'sass-embedded'; scripts?: Array<ExtraEntryPointClass | string>; styles?: Array<ExtraEntryPointClass | string>; stylePreprocessorOptions?: { includePaths?: string[]; sassOptions?: Record<string, any>; lessOptions?: Record<string, any>; }; cssModules?: boolean; ssr?: boolean; } export declare function withWeb(pluginOptions?: WithWebOptions): (config: Configuration, { options, context }: NxRspackExecutionContext) => Configuration;