Skip to content

neekey/compass-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compass-compiler

A standalone compiler for compass.

install

npm install compass-compiler --save

usage

var compass = require( 'compass-compiler' );

compass.compile( options, function( err, result, code ){

    if (code === 127) {
        console.warn(
            'You need to have Ruby and Compass installed ' +
            'and in your system PATH for this task to work. '
        );
    }

    // `compass compile` exits with 1 and outputs "Nothing to compile"
    // on stderr when it has nothing to compile.
    // https://github.com/chriseppstein/compass/issues/993
    if (code === 1 && !/Nothing to compile|Compass can't find any Sass files to compile/g.test(result.stderr)) {
        console.warn('↑');
    }
});

options

See grunt-contrib-compass to get detail about the options.

About

A standalone compiler for compass.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published