Skip to content

Commit

Permalink
fix(hmr-plugin): don't copy directories that don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Nov 28, 2023
1 parent 586fd37 commit a895f7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coalesce-vue/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ async function writeHtml(server: ViteDevServer) {
}

function copyDir(srcDir: string, destDir: string) {
if (!fs.existsSync(srcDir)) return;

for (const file of fs.readdirSync(srcDir)) {
const srcFile = path.resolve(srcDir, file);
const destFile = path.resolve(destDir, file);
Expand Down

0 comments on commit a895f7b

Please sign in to comment.