Created
June 16, 2014 17:41
-
-
Save wagenet/79b804eb943b9f3d7594 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.registry.add('css', 'broccoli-compass', 'scss', { | |
toTree: function(tree, inputPath, outputPath, options) { | |
// broccoli-compass doesn't like leading slashes | |
if (inputPath[0] === '/') { inputPath = inputPath.slice(1); } | |
tree = mergeTrees([ | |
tree, | |
'public' | |
], { | |
description: 'TreeMerger (stylesAndVendorAndPublic)' | |
}); | |
return compileCompass(tree, inputPath + '/app.scss', { | |
outputStyle: 'expanded', | |
require: 'sass-css-importer', // Allows us to import CSS files with @import("CSS:path") | |
sassDir: inputPath, | |
imagesDir: 'images', | |
//fontsDir: 'fonts', | |
cssDir: outputPath | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@wagenet I have turned this into ember-cli-compass-compiler addon which I think makes it easier to use since it is a single line install and it can be updated easily. It is installed with a single command, please take a look.