Showing 1 of 1 total issue
Function pageLoader
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const pageLoader = (targetUrl, destinationDir) => {
log(`BEGIN with\n\turl: ${targetUrl}\n\tdirectory: ${destinationDir}`);
const pageName = makeNameFromUrl(targetUrl);
const htmlName = `${pageName}.html`;
const htmlFilePath = path.join(destinationDir, htmlName);