I'm using ember-cli v0.0.40
in a small project which I mainly use to learn how ember-cli
works and differs from ember-app-kit
- especially on my windows dev machine.
Now, I came to the conclusion that I would need to tweak the Brocfile.js
to fit my needs an include a CSS auto-prefixer (broccoli-autoprefixer
), but I can't wrap my head around where I get the right tree to pass to the auto-prefixer and where I would inject the then returned tree again?
Just for the records, the current Brocfile.js
looks like this:
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp();
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
module.exports = app.toTree();
Where the heck would I get a grip on any broccoli
tree or task? I don't get it why this is abstracted away somewhere within ember-cli/lib/broccoli/ember-app
?