The Ember CLI manual describes how assets can be referenced in templates and CSS, but what is the correct way to reference an asset (say, an image) from my javascript code?
In particular, I am concerned that the asset path was correctly fingerprinted when creating assets for production. It seems that ember-cli uses broccoli-asset-rev for this, but according to it, the <script> tags in HTML and url() in CSS will be printed. Is there a way (possibly through another broccoli plugin) to get asset paths in fingerprinted .js files?
source share