| | |
| | | } |
| | | } |
| | | |
| | | 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) |
| | | |
| | |
| | | // 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) { |