Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// if(ext === '.html'){
// return path.basename(file.path, ext) + ext;
// }
return path.basename(file.path, ext) + '.' + hash.substr(0, 8) + ext;
}
};
if (config['reversion']) {
return gulp.src(['./tmp/**/*'])
.pipe(RevAll.revision(RevOptions))
.pipe(gulp.dest(paths.tmp.dir))
.pipe(revDel({
exclude: /(.html|.htm)$/
}))
.pipe(RevAll.manifestFile())
.pipe(gulp.dest(paths.tmp.dir));
} else {
cb();
}
}
".map",
".woff",
".woff2",
".svg",
".eot",
".ttf",
".otf",
".png",
".jpg",
".ico",
".js",
],
}))
.pipe(gulp.dest(distPath))
.pipe(manifestClean({ verbose: false }))
.pipe(manifest.manifestFile())
.pipe(gulp.dest(distPath));
});