We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acd9eef commit 17629fbCopy full SHA for 17629fb
src/generators/legacy-html/utils/safeCopy.mjs
@@ -28,8 +28,9 @@ export async function safeCopy(srcDir, targetDir) {
28
stat(targetPath),
29
]).catch(() => []);
30
31
- const shouldWrite = !tStat;
32
- sStat.value.size !== tStat.value.size ||
+ const shouldWrite =
+ !tStat ||
33
+ sStat.value.size !== tStat.value.size ||
34
sStat.value.mtimeMs > tStat.value.mtimeMs;
35
36
if (!shouldWrite) {
0 commit comments