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.
Ember CLI, Ember's command line interface, provides a standard project structure, a set of development tools, and an addon system. This allows Ember developers to focus on building apps rather than building the support structures that make them run.
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')
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With