'use strict';

var rework = require('broccoli-rework');

module.exports = {
  name: 'ember-cli-rework',

  included: function(app) {
    this.app = app;
    this.plugins = this.app.options.reworkPlugins;
  },

  postprocessTree: function(type, tree) {
    if (type === 'all' || type === 'styles') {
      tree = autoprefixer(tree, { use:function(css) {
        this.plugins.forEach(function(plugin) {
          css.use(plugin);
        });
      }});
    }
  }
};

'use strict';

var rework = require('broccoli-rework');

module.exports = {
  name: 'ember-cli-rework',

  included: function(app) {
    this.app = app;
    this.plugins = this.app.options.reworkPlugins;
  },

  postprocessTree: function(type, tree) {
    if (type === 'all' || type === 'styles') {
      tree = rework(tree, { use:function(css) {
        this.plugins.forEach(function(plugin) {
          css.use(plugin);
        });
      }});
    }

    return tree;
  }
};

Return the tree after postprocess
Return the tree after postprocess
