Having read various threads about the correct method for adding images and a containing folder to an Ionic 2 project, I set about following what seemed to be the ‘correct method’ by making additions to the gulpfile.js file as noted here: http://stackoverflow.com/questions/36292000/how-to-insert-image-in-ionic-2. Now, while the image folder has been created inside of the newly created ‘assets’ folder in www/build - when I send the app to a device ‘ionic run android’ - the app shows no images! What am I doing wrong?? The images show when being served via ionic serve --lab!
1 Like
I have worked this out - was down to how I referenced the images.
You might want to move assets folder out of www/build into www/ instead, more resilient that way coz www/build/ can be cleared.
Thanks. I have resolved this issue now.