Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task("html", function () {
var src = gulp.src(input.html.target);
// Add meta data
for (var keyword in metaData) {
var meta = metaData[keyword];
if (typeof meta !== "string")
meta = env.isProduction ? meta["build"] : meta["dev"];
meta = (meta || "").replace(/[\n\t]/g, "");
src = src.pipe(replace.call(this, "${" + keyword + "}", meta));
}
return src.pipe(gulp.dest(output.html));
});