Guff is an x86-64 Linux CLI tool providing both SASS/SCSS compilation and CSS parsing/minification. It is a faster, lighter, compressier alternative to chaining together multiple tools like sassc
and csso
.
Under the hood, it merely marries the SCSS functionality of grass with the compressive capabilities of Lightning CSS. If Guff is too opinionated for you or incompatible with your platform, take a look at those projects; they both have frontends of their own. ;)
It's easy; just give it a source and, optionally, a destination:
guff [FLAGS] [OPTIONS]
Flags:
-h, --help Print help information and exit.
-V, --version Print version information and exit.
Options:
-b, --browsers <STR> A comma-separated list of specific browser/version pairs
to target for CSS compatibility, like 'firefox 90, ie
11'. Specifying versions released after guff was built
has no effect.
-i, --input <FILE> The path to an SCSS or CSS source file.
-o, --output <FILE> The path to save the minified output to. If omitted,
the result will be printed to STDOUT instead.
If the input is SCSS, it will be compiled into CSS and then minified; if it is already CSS, it will just be minified.
Debian and Ubuntu users can just grab the pre-built .deb
package from the latest release.
This application is written in Rust and can alternatively be built from source using Cargo:
# Clone the source.
git clone https://github.com/Blobfolio/guff.git
# Go to it.
cd guff
# Build as usual. Specify additional flags as desired.
cargo build \
--bin guff \
--all-features \
--release
(This should work under other 64-bit Unix environments too, like MacOS.)