Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 671 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 671 Bytes

SassRotor

This is a Rotor to compile Sass files. It uses the Sass.ex library to do the Sass compilation.

Usage

The SassRotor module provides the sass rotor. And this is how you call it

SassRotor.sass(files)

Example config using the sass rotor

# This goes in the place you are configuring Rotor

import Rotor.BasicRotors
import SassRotor

output_path = "priv/static/assets/app.css"
Rotor.watch :stylesheets, ["priv/assets/stylesheets/*.scss"], fn(_changed_files, all_files)->
  read_files(all_files)
  |> sass
  |> concat
  |> output_to(output_path)
end