ember-cli where to put images

Undefined picture Undefined · Sep 17, 2015 · Viewed 17.2k times · Source

In the ember-cli folder structure where should I put images?

/app
/bower_components
/config
/dist
/node_modules
/public
/tests
/vendor

I am using ember-cli version 1.13.1.

Answer

Undefined picture Undefined · Sep 17, 2015

Create a folder inside public -> public/assets/images/, and place your images inside. You can then access them in the browser using /assets/images/imagename.png

Source from the ember-cli documentation it states:

Raw Assets

public/assets vs app/styles To add images, fonts, or other assets, place them in the public/assets directory. For example, if you place logo.png in public/assets/images, you can reference it in templates with assets/images/logo.png or in stylesheets with url('/assets/images/logo.png').