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,