You could use gulp-rename
to accomplish this:
var rename = require('gulp-rename');
gulp.src('app/client/**/*.html')
.pipe(rename({dirname: ''}))
.pipe(gulp.dest('dist'));
More Related Contents:
- Gulp error: The following tasks did not complete: Did you forget to signal async completion?
- Pass Parameter to Gulp Task
- What is the ** glob character?
- Get the current file name in gulp.src()
- Using Gulp to Concatenate and Uglify files
- how base option affects gulp.src & gulp.dest
- about GULP and application development [closed]
- NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack [closed]
- Stylesheet not loaded because of MIME-type
- How to fix “ReferenceError: primordials is not defined” in Node.js
- Excluding files/directories from Gulp task
- gulp command not found – error after installing gulp
- Why do we need to install gulp globally and locally?
- Is it possible to pass a flag to Gulp to have it run tasks in different ways?
- How to prevent moment.js from loading locales with webpack?
- Browserify, Babel 6, Gulp – Unexpected token on spread operator
- Gulps gulp.watch not triggered for new or deleted files?
- SyntaxError: ‘import’ and ‘export’ may appear only with ‘sourceType: module’ – Gulp
- How to use npm with ASP.NET Core
- After installation of Gulp: “no command ‘gulp’ found”
- Gulp.js task, return on src?
- Concat scripts in order with Gulp
- Modify file in place (same dest) using Gulp.js and a globbing pattern
- Why does gulp.src not like being passed an array of complete paths to files?
- Visual Studio Task Runner “SyntaxError: Use of const in strict mode.”
- Using Grunt, Bower, Gulp, NPM with Visual Studio 2015 for a ASP.NET 4.5 Project
- Can I use a Gulp task with multiple sources and multiple destinations?
- Disable chrome react DevTools for production
- Permission denied to Docker daemon socket at unix:///var/run/docker.sock
- How to solve npm install error “npm ERR! code 1”