# How to include foundation javascript using ember-cli

**URL:** <https://discuss.emberjs.com/t/how-to-include-foundation-javascript-using-ember-cli/8807>\
**Category:** Ember CLI\
**Created:** [September 20, 2015, 5:08am UTC](https://discuss.emberjs.com/t/how-to-include-foundation-javascript-using-ember-cli/8807 "2015-09-20T05:08:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suhas.chatekar](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/suhas.chatekar/32/11412_2.png) [@suhas.chatekar](https://discuss.emberjs.com/u/suhas.chatekar)\
**Post date:** [September 20, 2015, 5:08am UTC](https://discuss.emberjs.com/t/how-to-include-foundation-javascript-using-ember-cli/8807/1 "2015-09-20T05:08:23Z")

</div>

I have just managed to include foundation sass using ember-cli. I am now trying to get foundation.js to be added to final vendor.js through the asset pipeline. I have installed foundation as a bower component. I am adding following to `ember-cli-build.js` file but my `vendor.js` does not contain anything related to foundation.js

```auto
  app.import('bower_components/foundation/js/vendor/modernizr.js');
  app.import('bower_components/foundation/js/vendor/jquery.js');
  app.import('bower_components/foundation/js/foundation.js');

```

Is there any other setting I need to do in order to make the above three files bundle into `vendor.js`?

---

<div class="post-metadata">

**Author:** ![suhas.chatekar](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/suhas.chatekar/32/11412_2.png) [@suhas.chatekar](https://discuss.emberjs.com/u/suhas.chatekar)\
**Post date:** [September 20, 2015, 5:41am UTC](https://discuss.emberjs.com/t/how-to-include-foundation-javascript-using-ember-cli/8807/2 "2015-09-20T05:41:28Z")

</div>

This seems to be working now after running `ember build`. I still do not understand though why? When I run `ember server` does it not internally run `ember build`?
