diff --git a/vite.config.js b/vite.config.js index 079964eb4..091951ce4 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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}`); } }); }