How can I to use broccoli-asset-rev in addon?



I’m creating an ember addon ( This addon create svg file in assets directory. But the name of this svg file don’t has hash.

I think I should use broccoli-asset-rev but how?


You can’t use broccoli-asset-rev in addon, but I assume you mean using it for the add-on’s dummy app.

By default, svg files are not fingerprinted. You need to add this to ember-cli-build.js in your addon repo the same way you add it to your app repo. See their doc for usage. You need to specify the extensions property. But be aware that setting it is not a concat operation, but a replace.


Thank you Ming.

But I need turn on fingerprinting for svg inside my addon, otherwise /assets/icons.svg don’t loaded in applications which have rootURL.