If I use :
gulp.src([\'app/client/**/*.html\']) .pipe(gulp.dest(\'dist\'));
The folder structure in which my .html files w
.html
You could use gulp-rename to accomplish this:
gulp-rename
var rename = require('gulp-rename'); gulp.src('app/client/**/*.html') .pipe(rename({dirname: ''})) .pipe(gulp.dest('dist'));