Set more .js output files besides app and vendor?


#1

I am having big 3rd party lib made of few js files (ACE editor with plugins) I would like to use Ember-CLI to build together with rest of my project… but to yet another minified .js file, named editor.js. I would then want to make Ember-CLI don’t autoload this file, because its only needed in one part of app, so I can lazyload it on demand.

Is this supported? If so, how can this be achieved?


#2

You can put the files into /public and use $.getScript to append them to the DOM when you need them. Not the cleanest perhaps but it should work.