mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 18:02:55 +00:00
no message
This commit is contained in:
parent
9ea4781d93
commit
76c8b4a4c6
11
vite.config.js
vendored
11
vite.config.js
vendored
@ -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}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user