gulp-php2html
gulp-php2html copied to clipboard
Empty php files cause dropout
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: have you tried the haltOnError
option:
gulp.task('build:html', function() {
return gulp.src("./Components/**/*.php")
.pipe(php2html({haltOnError: false}))
.pipe(gulp.dest("./dist/html"));
});
I'll take a look @bezoerb , thanks!