Jacky Zhao
2023-07-24 8fd75ffbfda30edd5a134a1fbf9b81ac3cebb2ff
quartz/processors/emit.ts
@@ -84,12 +84,8 @@
  }
}
export async function emitContent(
  ctx: BuildCtx,
  content: ProcessedContent[],
) {
  const { argv, cfg }= ctx
  const contentFolder = argv.directory
export async function emitContent(ctx: BuildCtx, content: ProcessedContent[]) {
  const { argv, cfg } = ctx
  const perf = new PerfTimer()
  const log = new QuartzLogger(ctx.argv.verbose)
@@ -125,12 +121,7 @@
  // emitter plugins
  for (const emitter of cfg.plugins.emitters) {
    try {
      const emitted = await emitter.emit(
        ctx,
        content,
        staticResources,
        emit,
      )
      const emitted = await emitter.emit(ctx, content, staticResources, emit)
      emittedFiles += emitted.length
      if (ctx.argv.verbose) {