Reputation: 50742
I have an Ember app. My question is regarding the usage of Broccoli.
Now it is said that Broccoli is the default build tool for Ember-CLI
But I do not find Brocfile.js anywhere within my project.
Just wanted to understand how is Broccoli really used within an Ember project. Also in what practical scenarios do we have to change/define any configurations related to that
Upvotes: 0
Views: 230
Reputation: 18240
ember-cli
is basically wrapping broccoli
. Your ember-cli-build.js
is basically a modified version of the brocfile
. You can easily extend it with tools like broccoli-merge-trees
or broccoli-funnel
.
To modify the broccoli pipeline you usually hook into it after ember-cli
. app.toTree()
returns a normal broccoli tree, you're free to extend this with broccoli-merge-trees
:
return new MergeTrees([app.toTree(), myCustomTree]);
Upvotes: 2