Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ember-cli where to put images

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.

like image 710
Undefined Avatar asked Sep 17 '15 11:09

Undefined


People also ask

What is Ember CLI?

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.


1 Answers

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

like image 151
Undefined Avatar answered Sep 24 '22 01:09

Undefined