Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Jan 2, 2025
1 parent 9ea4781 commit 76c8b4a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,14 @@ export default defineConfig(({command, mode}) => {
fs.unlinkSync(destPath);
console.log(`Removed ${destPath}`);
}
} else {
fs.mkdirSync(path.dirname(destPath), {recursive: true});
fs.copyFileSync(filePath, destPath);
console.log(`Copied ${filePath} to ${destPath}`);
return;
}
if (path.basename(filePath) === '.DS_Store') {
return;
}
fs.mkdirSync(path.dirname(destPath), {recursive: true});
fs.copyFileSync(filePath, destPath);
console.log(`Copied ${filePath} to ${destPath}`);
}
});
}
Expand Down

0 comments on commit 76c8b4a

Please sign in to comment.