Skip to content

Commit

Permalink
Create the thing
Browse files Browse the repository at this point in the history
  • Loading branch information
kimroen committed Jun 17, 2014
1 parent d5a7aed commit b312cd6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions index.js
@@ -0,0 +1,34 @@
'use strict';

var path = require('path');
var fs = require('fs');
var autoprefixer = require('broccoli-autoprefixer');

function AutoprefixerPlugin(options) {
this.name = 'ember-cli-autoprefixer';
this.ext = 'css';
this.options = options || {};
}

AutoprefixerPlugin.prototype.toTree = function(tree) {
return autoprefixer(tree, this.options);
};

function EmberCLIAutoprefixer(project) {
this.project = project;
this.name = 'Ember CLI Autoprefixer';
}

EmberCLIAutoprefixer.prototype.treeFor = function treeFor() {
};

EmberCLIAutoprefixer.prototype.included = function included(app) {
var registry = app.registry;
this.app = app;

var plugin = new AutoprefixerPlugin(this.app.options.autoprefixerOptions);

registry.add('css', plugin);
};

module.exports = EmberCLIAutoprefixer;

0 comments on commit b312cd6

Please sign in to comment.