From 0403fa70aa24cd3c16fbd9caf434cdcd277f1a14 Mon Sep 17 00:00:00 2001
From: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Date: Mon, 22 Jan 2024 04:50:00 +0000
Subject: [PATCH] fix(search): use anchor element (closes #698) (#717)
---
quartz/build.ts | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/quartz/build.ts b/quartz/build.ts
index 22288ac..24f0498 100644
--- a/quartz/build.ts
+++ b/quartz/build.ts
@@ -142,19 +142,23 @@
const parsedFiles = [...contentMap.values()]
const filteredContent = filterContent(ctx, parsedFiles)
+
// TODO: we can probably traverse the link graph to figure out what's safe to delete here
// instead of just deleting everything
await rimraf(argv.output)
await emitContent(ctx, filteredContent)
console.log(chalk.green(`Done rebuilding in ${perf.timeSince()}`))
- } catch {
+ } catch (err) {
console.log(chalk.yellow(`Rebuild failed. Waiting on a change to fix the error...`))
+ if (argv.verbose) {
+ console.log(chalk.red(err))
+ }
}
+ release()
clientRefresh()
toRebuild.clear()
toRemove.clear()
- release()
}
const watcher = chokidar.watch(".", {
--
Gitblit v1.10.0