Jacky Zhao
2023-08-17 2dc0ae279cae87e37c94c42d4ad87107f2a5b5d2
quartz/plugins/emitters/assets.ts
@@ -1,8 +1,8 @@
import { FilePath, joinSegments, slugifyFilePath } from "../../path"
import { FilePath, joinSegments, slugifyFilePath } from "../../util/path"
import { QuartzEmitterPlugin } from "../types"
import path from "path"
import fs from "fs"
import { glob } from "../../glob"
import { glob } from "../../util/glob"
export const Assets: QuartzEmitterPlugin = () => {
  return {
@@ -24,7 +24,7 @@
        const dir = path.dirname(dest) as FilePath
        await fs.promises.mkdir(dir, { recursive: true }) // ensure dir exists
        await fs.promises.copyFile(src, dest)
        res.push(fp)
        res.push(dest)
      }
      return res