Control Gulp output paths with gulp.src base and gulp.dest
Use gulp.src globs with an explicit base, pipe JavaScript through gulp-uglify, and write output with gulp.dest; verify with --verbose and inspect dist/js.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use gulp.src globs with an explicit base, pipe JavaScript through gulp-uglify, and write output with gulp.dest; verify with --verbose and inspect dist/js.
Preserving Nested Directory Structure with gulp.src Base Option In Gulp 4.x, the gulp.src stream attaches a base path to each Vinyl file. When the base option is omitted, Gulp defaults to the glob stem before the first wildcard. gulp.dest writes files by appending file.relative to the destination directory, so the final output hierarchy depends entirely on f