Module

x/aleph/compiler/types.ts>TransformCSSOptions

The Full-stack Framework in Deno.
Go to Latest
interface TransformCSSOptions
import { type TransformCSSOptions } from "https://dotland.deno.dev/x/aleph@1.0.0-alpha.15/compiler/types.ts";

Properties

optional
minify: boolean

Whether to enable minification.

optional
sourceMap: boolean

Whether to output a source map.

optional
targets: Targets

The browser targets for the generated code.

optional
drafts: Drafts

Whether to enable various draft syntax.

optional
cssModules: boolean

Whether to compile this file as a CSS module.

optional
analyzeDependencies: boolean

Whether to analyze dependencies (e.g. @import and url()). When enabled, @import rules are removed, and url() dependencies are replaced with hashed placeholders that can be replaced with the final urls later (after bundling). Dependencies are returned as part of the result.

optional
pseudoClasses: PseudoClasses

Replaces user action pseudo classes with class names that can be applied from JavaScript. This is useful for polyfills, for example.

optional
unusedSymbols: string[]

A list of class names, ids, and custom identifiers (e.g. @keyframes) that are known to be unused. These will be removed during minification. Note that these are not selectors but individual names (without any . or # prefixes).