Skip to content

Commit e2d82e2

Browse files
wip(docs): fix when generating docs with partial build
1 parent db891bc commit e2d82e2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,14 @@ const { blockList, replaceBlock } = require('./evalHtmlCommentsTools.js');
164164
165165
function fileSize(filename) {
166166
167-
return Fs.statSync(Path.join(__dirname, filename)).size;
167+
try {
168+
169+
return Fs.statSync(Path.join(__dirname, filename)).size;
170+
} catch {
171+
172+
return -1;
173+
}
174+
168175
}
169176
170177
const version = process.argv[3];

0 commit comments

Comments
 (0)