2

I have the folder structure like below.

--projects
   --project1
      --dist
      --src
        --.js files
   --project2
      --dist
      --src
        --.js files
   ---

I tried to move the js files from src to dist using gulp task.

gulp.task('move', function () {    
    gulp.src('./projects/**/src/*.js', {base: './projects/'})
    .pipe(gulp.dest("/dist"));     
});

But it doesn't copy from src to dist. How to move files using gulp task when using glob?

I already checked this reference, but it moves to the root folder projects.

Community
  • 1
  • 1
Yahwe Raj
  • 1,947
  • 5
  • 25
  • 37

0 Answers0