feat: reproducible build (#412)

for sitemap, RSS and contentIndex.json.
This commit is contained in:
Zero King 2023-08-25 02:41:20 +08:00 committed by GitHub
parent 9ea2af92fc
commit ad1a2162ff

View File

@ -45,7 +45,7 @@ async function buildQuartz(argv: Argv, mut: Mutex, clientRefresh: () => void) {
perf.addEvent("glob")
const allFiles = await glob("**/*.*", argv.directory, cfg.configuration.ignorePatterns)
const fps = allFiles.filter((fp) => fp.endsWith(".md"))
const fps = allFiles.filter((fp) => fp.endsWith(".md")).sort()
console.log(
`Found ${fps.length} input files from \`${argv.directory}\` in ${perf.timeSince("glob")}`,
)