Skip to content

ovcharik/meteor-ruby-sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby sass compiler for meteor

Install

Package required sass gem.

$ gem install sass
# or check http://sass-lang.com/install

Add package

$ meteor add ovcharik:ruby-sass

Configuration

Add a ruby-sass.json file to root directory of project.

file

type: string

Path to main file. Required unless specified files.

files

type: object

Format:

'files': {
  'main file': 'dependencies', // can be pattern, like 'scss/home/**/*.scss'
  // or
  'main file': ['array', 'of', 'dependencies']
}

unixNewlines

type: boolean, default: false

Use Unix-style newlines in written files.

scss

type: boolean, default: false

Use the CSS-superset SCSS syntax.

style

type: string, default: nested

Output style. Can be nested, compact, compressed, or expanded.

precision

type: number, default: 5

How many digits of precision to use when outputting decimal numbers.

compass

type: boolean, default: false

Make Compass imports available and load project configuration.

comments

type: boolean, default: false

Emit comments in the generated CSS indicating the corresponding source line.

import

type: string

Add a sass import path.

require

type: string

Require a Ruby library before running Sass.

cacheLocation

type: string

The path to put cached Sass files. Defaults to .sass-cache

noCache

type: boolean, default: false

Don't cache to sassc files.

defaultEncoding

type: string

Specify the default encoding for Sass files.

Examples

Simple

{
  "file": "path/to/main/sass/file.scss"
}

Files

{
  "files": {
    "styles/application.scss": ["styles/**/*.scss", "include/variabled.css"],
    "vendor/bootstrap/bootstrap.scss": "vendor/bootstrap/**/*.scss"
  }
}

About

Ruby sass compiler for meteor

Resources

Stars

2 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors