Skip to content

Commit

Permalink
Add support for postprocessTree / preprocessTree for addon-styles tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Dec 8, 2016
1 parent 14d6fac commit 919bbac
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/models/addon.js
Expand Up @@ -664,17 +664,21 @@ var Addon = CoreObject.extend({
@private
@method compileStyles
@param {Tree} tree Styles file tree
@param {Tree} addonStylesTree Styles file tree
@return {Tree} Compiled styles tree
*/
compileStyles: function(tree) {
compileStyles: function(addonStylesTree) {
this._requireBuildPackages();

if (tree) {
return preprocessCss(tree, '/', '/', {
if (addonStylesTree) {
var preprocessedStylesTree = this._addonPreprocessTree('css', addonStylesTree);

var processedStylesTree = preprocessCss(preprocessedStylesTree, '/', '/', {
outputPaths: { 'addon': this.name + '.css' },
registry: this.registry
});

return this._addonPostprocessTree('css', processedStylesTree);
}
},

Expand Down

0 comments on commit 919bbac

Please sign in to comment.