Picture of Fabio Beoni
Use of icons in new component
by Fabio Beoni - Tuesday, 4 July 2017, 8:03 AM
 

Hello guys,

can anyone show an example of a component template (.hbs) referencing some icons from the component folder?

I need to display some icons on a component I'm developing, but I don't know what path I should use to reference the icons on my component template (.hbs), since the course has a build process and I don't know where my assets will end up after the build.

Thanks, F.

Picture of Matt Leathes
Re: Use of icons in new component
by Matt Leathes - Tuesday, 4 July 2017, 9:18 AM
 

Not sure what you mean by 'the component folder' - but if you want to refer to files that you put in src/course/en/images then the path is "course/en/images/filename.ext"

Picture of Fabio Beoni
Re: Use of icons in new component
by Fabio Beoni - Tuesday, 4 July 2017, 1:59 PM
 

I was asking about referencing an image hosted in src/components/{compName}/assets

I saw just now that the build process copies all of them under ./build/assets/

Actually I didn't notice that before... ;)

Thanks anyway.