Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
} else {
console.log(chalk.yellow("Favicons files missing in the response."));
}
if (response.html) {
fs.writeFileSync(
`${PATHS.get("src")}/templates/_favicons.ejs`,
response.html.join("\n")
);
console.log(chalk.green("Favicons template generated."));
} else {
console.log(chalk.yellow("Favicons template missing in the response."));
}
};
favicons(source, configuration, callback);
export function generateFavicons(done) {
return favicons(`${config.src}/favicon.png`, {
appName: config.title,
appDescription: config.description,
developerName: config.author,
developerURL: config.developerURL,
background: 'transparent',
path: 'images/favicon/',
url: 'images/share.jpg',
display: 'standalone',
orientation: 'portrait',
version: config.version,
logging: config.verbose,
online: false,
icons: {
android: true,
appleIcon: true,
appleStartup: true,
task('favicons', () =>
src(`${config.src.images}/icon.png`)
.pipe(favicons(config.favicons)).on('error', $.util.log)
.pipe($.size(config.size('favicons')))
.pipe(dest(`${config.dest.dist}${config.favicons.path}`)))
gulp.task("favicon", function() {
return gulp
.src(paths.images + "/favicon.png")
.pipe(
favicons({
appName: "FPbase",
appDescription: "The Fluorescent Protein Database",
developerName: "Talley Lambert",
developerURL: "http://talleylambert.com/",
background: "#17941e",
path: "/",
url: "http://fpbase.org/",
display: "standalone",
orientation: "portrait",
start_url: "/",
version: 1.0,
logging: false,
html: "index.html",
pipeHTML: true,
replace: true
})