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.
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')
.