gulpjs / gulp

A toolkit to automate & enhance your workflow

Home Page:https://gulpjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp.dest() wrong path if foldername contains "*"

happen-studio opened this issue · comments

If the name of the folder contains the character "*", then gulp.dest() does not work properly.
In my example, gulp saves the css file in:

*workspaces / project01 / css / *workspaces / project01 / css /

my folder structure:

+ *workspaces
           + project01 (gulp folder)
                 + _build
                 + css 

my code:

…
function styles(done) {
    gulp.src('_build/css/*.css')
			         .pipe(plumber())
			         .pipe(gcmq())
			         .pipe(csso())
			         .pipe(plumber())
			         .pipe(gulp.dest('css/'))
.pipe(browserSync.stream({match: '**/*.css'}));
done();
}
…
  • OSX version 13.2.1
  • node version 19.3.0
  • npm version 9.8.1
  • gulp version (CLI 2.3.0, local 4.0.2)