Skip to content

DrSammyD/mimosa-sass

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mimosa-sass

Overview

This is a SASS compiler for the Mimosa build tool. This module is for use with Mimosa 2.0+. This replicates the functionality of the SASS compiler that was built into Mimosa before 2.0.

For more information regarding Mimosa, see http://mimosa.io

Note: Version 1.1.0 works with Mimosa 2.0.8 and above.

Usage

Add 'sass' to your list of modules. That's all! Mimosa will install the module for you when you start mimosa watch or mimosa build.

Functionality

This module will compile SASS files during mimosa watch and mimosa build and includes compilation with compass.

For SASS compilation there are two options, using Ruby SASS (SASS Ruby gem install) or node.js SASS (via the node-sass library). Ruby is SASS' source language and the node.js version is a port of the Ruby functionality to node.js. This module does not come bundled with the node.js version as it can occasionally cause installation issues, but this module is ready to use the node version if it is provided. Use the lib setting to provide a node-sass compiler. (Ex: lib: require('node-sass')). By default the Ruby version is enabled.

Compass (Ruby install) does not have a node.js port, so to use SASS and Compass together, Ruby SASS must be used.

Default Config

sass:
  lib: undefined
  extensions: ["sass", "scss"]
  • lib: Using the lib property you can provide a node version of SASS. You must have node-sass npm installed into your project and then provide it to lib. For instance: lib: require('node-sass').
  • extensions: an array of strings, the extensions of your SASS files.

About

A Mimosa 2.0 module for SASS compiling

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.1%
  • CoffeeScript 2.9%