Skip to content

Commit

Permalink
chore: compress search data. #105 #32
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 17, 2022
1 parent b034d79 commit d2b0a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function createHTML(files = [], num = 0) {
const searchData = await fs.readJSON(SEARCH_DATA);
data.path = path.relative(OUTOUT, outputHTMLPath);
searchData[options.filename] = data;
await fs.writeJSON(SEARCH_DATA, searchData, { spaces: 2 });
await fs.writeJSON(SEARCH_DATA, searchData);
}
await fs.writeFile(outputHTMLPath, html);
console.log(`♻️ \x1b[32;1m ${path.relative(OUTOUT, outputHTMLPath)} \x1b[0m`);
Expand Down

0 comments on commit d2b0a34

Please sign in to comment.