Jacky Zhao
2025-03-14 da1b6b37fe2ee09359b532f0d2669975b4476c95
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[]
  },
})