From 8dd73704e6e95254d2addf51fede6329f90796b8 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sat, 22 Jul 2023 23:06:36 +0000
Subject: [PATCH] hot content reload
---
quartz/bootstrap-cli.mjs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs
index 411a70e..b4bf3a9 100755
--- a/quartz/bootstrap-cli.mjs
+++ b/quartz/bootstrap-cli.mjs
@@ -72,7 +72,7 @@
serve: {
boolean: true,
default: false,
- describe: 'run a local server to preview your Quartz'
+ describe: 'run a local server to live-preview your Quartz'
},
port: {
number: true,
@@ -255,6 +255,7 @@
setup(build) {
build.onLoad({ filter: /\.inline\.(ts|js)$/ }, async (args) => {
let text = await promises.readFile(args.path, 'utf8')
+
// remove default exports that we manually inserted
text = text.replace('export default', '')
text = text.replace('export', '')
--
Gitblit v1.10.0