From 7c2bb4ee4c4ee4d6abc8f7f3757d40c039a1bcac Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 24 Jul 2023 00:58:35 +0000
Subject: [PATCH] bundleinfo flag, minify scripts
---
quartz/plugins/emitters/contentIndex.ts | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/quartz/plugins/emitters/contentIndex.ts b/quartz/plugins/emitters/contentIndex.ts
index 0b1fec7..66cf137 100644
--- a/quartz/plugins/emitters/contentIndex.ts
+++ b/quartz/plugins/emitters/contentIndex.ts
@@ -68,7 +68,8 @@
opts = { ...defaultOptions, ...opts }
return {
name: "ContentIndex",
- async emit(_contentDir, cfg, content, _resources, emit) {
+ async emit(ctx, content, _resources, emit) {
+ const cfg = ctx.cfg.configuration
const emitted: FilePath[] = []
const linkIndex: ContentIndex = new Map()
for (const [_tree, file] of content) {
--
Gitblit v1.10.0