Where do I need to keep Image folder in ionic 2

This is most probably because you have a TypeScript project and the sample gulpfile.js provided by @fuffenz is for a JavaScript project.

I would recommend you to copy the base gulpfile.js for TypeScript and then apply the required changes by yourself, i.e. update the watch and build tasks by adding the assets task and copy the assets task itself to the file (see the TODO comments below):

// ...
// TODO: Update this task by adding 'assets' as shown below:
gulp.task('watch', ['clean'], function(done){
  runSequence(
    ['sass', 'html', 'fonts', 'scripts', 'assets'],
//...
// TODO: Update this task by adding 'assets' as shown below:
gulp.task('build', ['clean'], function(done){
  runSequence(
    ['sass', 'html', 'fonts', 'scripts', 'assets'],
// ...
// TODO: Copy the task below to your gulpfile.js.
// copy "assets" folder and its content from /app/assets to /www/build/assets
gulp.task('assets', function() {
   return gulp.src('app/assets/*.*')
   .pipe(gulp.dest('www/build/assets'));
});
// ...

I would also recommend you to check out the following topic:

1 Like