I am trying to stage a project from a working directory to a server (same machine). Using the following code:
gulp.src([
'index.php',
'css/**',
'js/**',
'src/**',
])
.pipe(gulp.dest('/var/www/'));
I would expect to see all the files copied. However it flattens the dir structure - all directories are copied but every file is placed in the root /var/www
Gulp seems like a great build tool but copying items should be a simple process surely?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…