Skip to content

LightningCssOptions

type LightningCssOptions =
    {
        BinaryPath: string option
        Targets: string
        MinifyWhileWatching: bool
    }
AssemblyNacara.Plugin.Assets.LightningCss

Options of the Lightning CSS plugin.

Fields

BinaryPath: string option

Path of an existing lightningcss binary. Downloaded and cached when not set.

Targets: string

Browsers to compile the CSS for, in browserslist syntax.

Decides what gets rewritten as well as what gets prefixed: name older browsers and nesting, color-mix() and the rest come out as something they understand.

MinifyWhileWatching: bool

Minify while watching too. Off by default: the saving is invisible locally and it costs a process per stylesheet on every rebuild.