Skip to content

Commit

Permalink
Merge pull request #1 from alexBaizeau/compass-command
Browse files Browse the repository at this point in the history
Add compassCommand option
  • Loading branch information
quaertym committed Jul 31, 2014
2 parents 001dc5c + e444c93 commit 803a938
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions index.js
Expand Up @@ -15,22 +15,24 @@ CompassCompilerPlugin.prototype.toTree = function(tree, inputPath, outputPath) {
// broccoli-compass doesn't like leading slashes
if (inputPath[0] === '/') { inputPath = inputPath.slice(1); }

var options = this.options;
var mainFile = options.mainFile || (this.appName + '.' + this.ext);
var outputStyle = options.outputStyle || 'compressed'; // or expanded
var sassDir = options.sassDir || inputPath;
var cssDir = options.cssDir || outputPath;
var imagesDir = options.imagesDir || 'images';
var fontsDir = options.fontsDir || 'fonts';
var require = options.require || 'sass-css-importer'; // this allows us to import CSS files with @import("CSS:path")
var options = this.options;
var mainFile = options.mainFile || (this.appName + '.' + this.ext);
var outputStyle = options.outputStyle || 'compressed'; // or expanded
var sassDir = options.sassDir || inputPath;
var cssDir = options.cssDir || outputPath;
var imagesDir = options.imagesDir || 'images';
var fontsDir = options.fontsDir || 'fonts';
var require = options.require || 'sass-css-importer'; // this allows us to import CSS files with @import("CSS:path")
var compassCommand = options.compassCommand || 'compass';

var compassOptions = {
outputStyle: outputStyle,
require: require,
sassDir: sassDir,
imagesDir: imagesDir,
fontsDir: fontsDir,
cssDir: cssDir
cssDir: cssDir,
compassCommand: compassCommand
};

tree = mergeTrees([tree, 'public'], {
Expand Down

0 comments on commit 803a938

Please sign in to comment.