Add support for Lighning CSS

There were already requests for PostCSS support, but keats declined it as not being Rust-based, which is a good argument.

Well, let me introduce you all to Lightning CSS. It’s a CSS powerhouse, which can bundle, transform, and minify CSS and replace 30-ish PostCSS plugins. The most important feature for everyone would be auto-prefixing, I suppose. It can also generate source maps (including from already generated maps), which will make it a good addition to Zola’s CSS pipeline, perhaps even replace it, since one can extend its functionality with custom Visitors.

The best thing: It’s written in Rust and is available as a crate. I really urge you to look into this, because I think this is a better option than interfacing with or bootstrapping Node, or whatever nonsense it is that others do :stuck_out_tongue:


I have now tried it out in a fork. The tests run fine, and I could run it on my personal website without any hiccups :+1:


This looks quite promising - @keats what are your thoughts? It seems to align with some of your past comments (which I appreciate and align with) - doesn’t pull in node, still fits into the single binary concept

To give this even more weight: Andrey Sitnik, the creator of PostCSS, urges others to start using Lightning CSS instead, too :slight_smile:

1 Like