Skip to content

Commit 7c1e13e

Browse files
authored
fix: copyPublicDir in watch mode (#1331)
1 parent fdfd59a commit 7c1e13e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ export async function build(_options: Options) {
346346
}),
347347
])
348348

349+
copyPublicDir(options.publicDir, options.outDir)
350+
349351
if (options.onSuccess) {
350352
if (typeof options.onSuccess === 'function') {
351353
onSuccessCleanup = await options.onSuccess()
@@ -445,7 +447,6 @@ export async function build(_options: Options) {
445447
logger.info('CLI', `Target: ${options.target}`)
446448

447449
await buildAll()
448-
copyPublicDir(options.publicDir, options.outDir)
449450

450451
startWatcher()
451452
}

0 commit comments

Comments
 (0)