gulp-php2html icon indicating copy to clipboard operation
gulp-php2html copied to clipboard

Empty php files cause dropout

Open kode8 opened this issue 7 years ago • 2 comments

Example task:

gulp.task('build:html', function() { return gulp.src("./Components/**/*.php") .pipe(php2html()) .pipe(gulp.dest("./dist/html")); });

If there's an empty php file, the build will only output the html files up to that point, the rest are ignored.

kode8 avatar May 11 '17 08:05 kode8

@kode8: have you tried the haltOnErroroption:

gulp.task('build:html', function() {
return gulp.src("./Components/**/*.php")
.pipe(php2html({haltOnError: false}))
.pipe(gulp.dest("./dist/html"));
});

bezoerb avatar Jun 12 '17 21:06 bezoerb

I'll take a look @bezoerb , thanks!

kode8 avatar Jun 13 '17 07:06 kode8