no message

This commit is contained in:
kuaifan 2025-01-03 04:48:38 +08:00
parent 9ea4781d93
commit 76c8b4a4c6

11
vite.config.js vendored
View File

@ -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}`);
}
});
}