# How to remove an addon folder from vendor.js and save it in another file?

**URL:** <https://discuss.emberjs.com/t/how-to-remove-an-addon-folder-from-vendor-js-and-save-it-in-another-file/14314>\
**Category:** Ember CLI\
**Created:** [March 1, 2018, 12:38am UTC](https://discuss.emberjs.com/t/how-to-remove-an-addon-folder-from-vendor-js-and-save-it-in-another-file/14314 "2018-03-01T00:38:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phcoliveira](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/phcoliveira/32/11884_2.png) [@phcoliveira](https://discuss.emberjs.com/u/phcoliveira)\
**Post date:** [March 1, 2018, 12:38am UTC](https://discuss.emberjs.com/t/how-to-remove-an-addon-folder-from-vendor-js-and-save-it-in-another-file/14314/1 "2018-03-01T00:38:13Z")

</div>

Hello there and thanks in advance!

For some unusual, but thoughtful, reasons, I would like the files from the `addon` folder of some private addons to be compiled in another file, other than `vendor.js`. Is it possible?

I already know how to remove such contents from the `vendor.js` by returning an empty `tree` for the hook `treeForAddon`. But I can’t find a way to place them in another `js` file.

After many attempts, I am thinking about replicating `ember-cli`’s behaviour inside `ember-cli-build.js`, for example:

1. To use `broccoli-funnel` to create a tree of `lib/private-addon/addon/**/*.hbs` and have these templates precompiled and concatenated in a file named `assets/private-addons.js`;

2. To use `broccoli-funnel` to create a tree of `lib/private-addon/addon/**/*.js` and have these files processed by `broccoli-babel` (or something like that) and concatenated in the file mentioned above.

How would you approach this problem?

Again, thanks!
