Inject 3rd party scripts into your ember-cli app, for example mixpanel, Typekit etc...
Install as an Ember CLI addon:
npm install --save-dev ember-inject-script
For example, lets configure Typekit.
loadScript returns a promise, so we can simply load in the Typekit JS and, when it's ready, call Typekit.load():
/* global Typekit */importinjectScriptfrom'ember-inject-script';importconfigfrom'your-app/config/environment';exportdefault{name: 'typekit',initialize: function(){varurl="//use.typekit.net/"+config.typekitID+".js";injectScript(url).then(function(){Typekit.load();});}};git clonethis repositorynpm installbower install
ember server- Visit your app at http://localhost:4200.
ember testember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.