How can I add a script-tag to index.html only when I build my app in production mode? The background to this is:
We want to include a third party library but only when our app is in production mode. The constraint is, that the script needs to be the first script embedded on the page. So I can’t just load it after Ember is ready.
Is there a good way using Broccoli or the Ember-Cli-asset-pipeline to achieve this? Here just some short snippets to get the idea what I need:
In production mode:
<html> <head> <title>...</title> <script src="http://....THIRD-PARTY" /> ... ...
In development mode:
<html> <head> <title>...</title> // NO THIRD PARTY SCRIPT HERE ... ...
I’m sure there are some neat tricks to do this Thanks