Skip to content

Instantly share code, notes, and snippets.

@rlivsey
Created July 30, 2014 11:33
Show Gist options
  • Save rlivsey/55b8ac00b55175dbab55 to your computer and use it in GitHub Desktop.
Save rlivsey/55b8ac00b55175dbab55 to your computer and use it in GitHub Desktop.
ember-cli sass
var fs = require('fs');
var path = require('path');
function unwatchedTree(dir) {
return {
read: function() { return dir; },
cleanup: function() { }
};
}
function EmberCLISharedStyles(project) {
this.project = project;
this.name = 'Shared Styles';
}
EmberCLISharedStyles.prototype.treeFor = function(name) {
var treePath = path.join('node_modules', 'shared-styles', name);
if (fs.existsSync(treePath)) {
return unwatchedTree(treePath);
}
};
EmberCLISharedStyles.prototype.included = function included(app) {
// app.import('shared-styles/main.scss');
app.import('shared-styles/foo.css');
};
module.exports = EmberCLISharedStyles;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment