* build: add warning if no public folder found #96 * build: change color to yellow * build: warn if public folder missing and not set to "public"
This commit is contained in:
parent
03775f7048
commit
2a23e7e292
1 changed files with 4 additions and 1 deletions
|
@ -274,8 +274,11 @@ export async function build(astroConfig: AstroConfig): Promise<0 | 1> {
|
||||||
await writeFilep(outUrl, bytes, null);
|
await writeFilep(outUrl, bytes, null);
|
||||||
}
|
}
|
||||||
info(logging, 'build', green('✔'), 'public folder copied.');
|
info(logging, 'build', green('✔'), 'public folder copied.');
|
||||||
|
} else {
|
||||||
|
if(path.basename(astroConfig.public.toString()) !=='public'){
|
||||||
|
info(logging, 'tip', yellow(`! no public folder ${astroConfig.public} found...`));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// build sitemap
|
// build sitemap
|
||||||
if (astroConfig.buildOptions.sitemap && astroConfig.buildOptions.site) {
|
if (astroConfig.buildOptions.sitemap && astroConfig.buildOptions.site) {
|
||||||
info(logging, 'build', yellow('! creating a sitemap...'));
|
info(logging, 'build', yellow('! creating a sitemap...'));
|
||||||
|
|
Loading…
Reference in a new issue