Jacky Zhao
2023-08-05 1da467d2143a260af8e5b7d2d2f68f0fcaa0260c
quartz/bootstrap-cli.mjs
@@ -16,6 +16,7 @@
import http from "http"
import serveHandler from "serve-handler"
import { WebSocketServer } from "ws"
import { randomUUID } from "crypto"
const ORIGIN_NAME = "origin"
const UPSTREAM_NAME = "upstream"
@@ -304,7 +305,8 @@
      jsxImportSource: "preact",
      packages: "external",
      metafile: true,
      sourcemap: true,
      sourcemap: "inline",
      sourcesContent: false,
      plugins: [
        sassPlugin({
          type: "css-text",
@@ -372,7 +374,7 @@
      }
      // bypass module cache
      const { default: buildQuartz } = await import(cacheFile + `?update=${new Date()}`)
      const { default: buildQuartz } = await import(cacheFile + `?update=${randomUUID()}`)
      await buildQuartz(argv, clientRefresh)
      clientRefresh()
    }