Skip to main content

Crate oj_css

Crate oj_css 

Source
Expand description

CSS compilation on Lightning CSS. Handles plain CSS (syntax lowering, autoprefixing, optional minify), CSS Modules scoping for *.module.css, and Sass/SCSS via the pure-Rust grass compiler (no Node sidecar).

Targets drive both autoprefixing and modern-CSS lowering (nesting, etc.).

Structs§

CssOutput

Functions§

compile_css
compile_sass
Compile Sass/SCSS to plain CSS. load_dir is where @use/@import of sibling stylesheets resolve from.
is_css_module
is_sass
Sass/SCSS files, by url extension.