mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
copy dist to production site
This commit is contained in:
@@ -161,7 +161,7 @@ async function generateBundle() {
|
||||
await buildContext.rebuild();
|
||||
} else {
|
||||
// One-time build for production
|
||||
esbuild.build(config);
|
||||
await esbuild.build(config);
|
||||
}
|
||||
|
||||
spinner.succeed();
|
||||
@@ -200,6 +200,11 @@ async function generateDocs() {
|
||||
// Copy assets
|
||||
await copy(join(docsDir, 'assets'), join(siteDir, 'assets'), { overwrite: true });
|
||||
|
||||
// Copy dist (production only)
|
||||
if (!isDeveloping) {
|
||||
await copy(distDir, join(siteDir, 'dist'));
|
||||
}
|
||||
|
||||
spinner.succeed(`Writing the docs ${chalk.gray(`(${output}`)})`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user