gulpjs / gulpjs/gulp

src() doesn't work with wildcards (4.0.2 -> 5.0.0)

Open
#2,811 18 comments 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
32.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### What were you expecting to happen?
all html files in ```src/html/**/*.html``` to be in the ```dist/``` directory

### What actually happened?
none of the files were in the ```dist/``` dir

### Please give us a sample of your gulpfile
```js
gulp.task("build-html", async function () {
return gulp
.src("src/html/**/*.html")
.pipe(
fileinclude({
context: layout,
prefix: "@@",
basepath: "@file",
indent: true,
})
)
.pipe(gulp.dest("dist"));
});
```

### Terminal output / screenshots
![gulpjs1](https://github.com/gulpjs/gulp/assets/73506090/752942dc-bd20-4cd2-a40e-0265fd2ce820)

```sh
$ yarn gulp build-html
$ ls dist/
```

### Please provide the following information:
* OS & version: Ubuntu 22.04.4 (WSL 2)
* node version: 22.0.0
* npm version: 9.6.4
* gulp version: 5.0.0

### Additional information
When using 4.0.2, the program works as expected. So the current solution is downgrading the gulp version.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.