Lightning CSS
Lightning CSS is an extremely fast CSS parser, transformer, bundler, and minifier written in Rust and compiled to WebAssembly. It supports modern CSS features and can transpile them for broader browser compatibility.
Usage
Lightning CSS is a CSS processor that can be enabled from the style editor menu, or configured via the processors property of the configuration object.
When enabled, all CSS output is processed through Lightning CSS, which minifies the output and transpiles modern CSS features for browser compatibility.
Lightning CSS can be used alongside other processors. Multiple processors are applied in the order they appear in the style editor menu.
Demo
Processor Info
Name
lightningcss
Editor
style
Processor
Version
lightningcss-wasm: v1.30.2
Custom Settings
Custom settings added to the property lightningcss are passed as transform options to Lightning CSS. Please check the documentation for full reference.
Please note that custom settings should be valid JSON (i.e. functions are not allowed).
Example:
{
"lightningcss": {
"minify": true,
"sourceMap": true
}
}
Links
- Lightning CSS
- Lightning CSS on GitHub
- CSS Processors in LiveCodes