Menu icon Foundation
Images in Apps - where do they go?

Sorry if I've missed this somehow, but what is best practice with putting in images?

I've been saving in build/assets/img inside my app folder, but when I run the app for example with 'npm start' it's going to delete them.

Should I be modifying my gulpfile.js to tell it for this app to make a copy of images from client/assets/img etc? Or have I complicated this?

imagesnode script

Sorry if I've missed this somehow, but what is best practice with putting in images?

I've been saving in build/assets/img inside my app folder, but when I run the app for example with 'npm start' it's going to delete them.

Should I be modifying my gulpfile.js to tell it for this app to make a copy of images from client/assets/img etc? Or have I complicated this?

This post has been closed. No new replies can be added.

Robert North over 4 years ago

My bad. I just added this to gulp.task('copy'... in the apps gulpfile.js

'./client/assets/img/*.*'

Robert North over 4 years ago

Oh man it is so much to wrap my head around. I didn't realise node was doing this sort of thing. I feel so stupid where have I been. You said it right somewhere that we've been designing like its 2007. So many new things to take it right now.