Skip to content

Commit

Permalink
feat: expose assets as the top level
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdvl committed Apr 24, 2023
1 parent 684f37b commit 9b86589
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const ESBuildConfig: esbuild.BuildOptions = {
};

const copy_assets = async () =>
await copy(site_dir + "assets", build_dir + "assets", { overwrite: true });
await copy(site_dir + "assets", build_dir, { overwrite: true });

const rebuild = async (routes: string[], islands: string[]) => {
await Promise.all([
Expand All @@ -79,6 +79,7 @@ const rebuild = async (routes: string[], islands: string[]) => {
...ESBuildConfig,
write: true,
splitting: true,
// splitting: true,
entryPoints: islands,
}),
copy_assets(),
Expand Down

0 comments on commit 9b86589

Please sign in to comment.