Jacky Zhao
2025-03-13 1efe2e20a4fb2f47625c4a22c9ad87f7830eabf3
quartz/plugins/emitters/cname.ts
@@ -11,13 +11,10 @@
export const CNAME: QuartzEmitterPlugin = () => ({
  name: "CNAME",
  getQuartzComponents() {
    return []
  },
  async getDependencyGraph(_ctx, _content, _resources) {
    return new DepGraph<FilePath>()
  },
  async emit({ argv, cfg }, _content, _resources): Promise<FilePath[]> {
  async emit({ argv, cfg }, _content, _resources) {
    if (!cfg.configuration.baseUrl) {
      console.warn(chalk.yellow("CNAME emitter requires `baseUrl` to be set in your configuration"))
      return []
@@ -27,7 +24,7 @@
    if (!content) {
      return []
    }
    fs.writeFileSync(path, content)
    await fs.promises.writeFile(path, content)
    return [path] as FilePath[]
  },
})