Sass4fUser Guide

Overview

Sass4f is a wrapper around jsass/5.10.4 and libsass/3.6.4 - the compiler for Sass and Scss files.

Sass4f is a simple command line utility program for compiling .scss files into .css files. It was created for compiling Twitter Bootstrap templates and has been successfully tested with Bootstrap v4.4.1.

Sass4f is a happy alternative to installing Sass, Node.js, Grunt, and half the Internet just to compile a couple of text files!

Quick start example:

C:\> fan afSass4j -x C:\projects\website.scss C:\projects\website.css

Quick Start

Once installed, run Sass4f from the command line:

C:\> fan afSass4j [-x] [-m] <sassIn> <cssOut>

Where sassIn and cssOut are files. OS dependent and / or URI notation may be used. Example:

C:\> fan afSass4j -x C:\projects\website.scss C:\projects\website.css

C:\> fan afSass4j -x file:/C:/projects/website.scss file:/C:/projects/website.css

-x compresses the CSS output, -m generates a source map, and -w continuously watches for file updates.

Note that cssOut may also be a directory, for example:

C:\> fan afSass4j -x -m -w scss\website.scss css\

will generate css\website.css and re-compile it should any file in the scss/ directory be updated.

Platforms

Sass4f is bundled with pre-compiled native binaries for the following platforms:

  • linux-x86
  • linux-x86_64
  • macosx-x86_64
  • win32-x86
  • win32-x86_64

Dependencies

Sass4f is designed to be used a standalone application and as such, comes bundled with the following jars:

  • commons-io-2.6.jar
  • commons-lang3-3.9.jar
  • commons-text-1.8.jar
  • jsass-5.10.5-SNAPSHOT.jar
  • mjson-1.4.1.jar
  • slf4j-api-1.7.28.jar