Interface: CssOptions
Defined in: src/features/css/index.ts:3
Properties
fileName?
optional fileName: string;Defined in: src/features/css/index.ts:16
Specify the name of the CSS file.
Default
'style.css'lightningcss?
optional lightningcss: LightningCSSOptions;Defined in: src/features/css/index.ts:53
Lightning CSS options for CSS syntax lowering and transformations.
Requires @tsdown/css to be installed.
minify?
optional minify: boolean;Defined in: src/features/css/index.ts:46
Enable/disable CSS minification.
Requires @tsdown/css to be installed.
Default
falsepreprocessorOptions?
optional preprocessorOptions: PreprocessorOptions;Defined in: src/features/css/index.ts:37
Options for CSS preprocessors (Sass/Less/Stylus).
In addition to options specific to each processor, additionalData option can be used to inject extra code for each style content.
Requires @tsdown/css to be installed.
splitting?
optional splitting: boolean;Defined in: src/features/css/index.ts:10
Enable/disable CSS code splitting. When set to false, all CSS in the entire project will be extracted into a single CSS file. When set to true, CSS imported in async JS chunks will be preserved as chunks.
Default
falsetarget?
optional target: string | false | string[];Defined in: src/features/css/index.ts:27
Set the target environment for CSS syntax lowering. Accepts esbuild-style target strings (e.g., 'chrome99', 'safari16.2'). Defaults to the top-level target option.
Requires @tsdown/css to be installed.