Sharing a public tree in an ember-cli addon

So... I finally found a way to share the static assets: - I placed the files in vendor/assets directory - Declared the files to shared (each file...) into the addon's index.js file @ addon's root

app.import('vendor/assets/my_image.png');

An interesting option of app.import statement I found in my searches is destDir, which allows to customize the target publication path of the asset:

app.import('vendor/assets/a/b/c/my_image.png', { destDir: 'x/y' });

will publish my_image.png @ URL /assets/x/y/my_image.png

Hoping this will help others to save time...

Tags:

Ember Cli