How to include foundation javascript using ember-cli


#1

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

  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?


#2

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?