Skip to content

Commit dea372f

Browse files
author
那里好脏不可以
authored
fix(scripts/build-content-tree): fix JSON.stringify method (#6165)
1 parent efd234e commit dea372f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/build-content-tree.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function buildContentTree(source, output) {
4343

4444
fs.writeFileSync(
4545
path.resolve(output),
46-
JSON.stringify(content, 2),
46+
JSON.stringify(content, null, 2),
4747
(error) => {
4848
if (error) {
4949
console.log('scripts/build-content-tree', error);

0 commit comments

Comments
 (0)