| | |
| | | import { FilePath, ServerSlug } from "../../util/path" |
| | | import { FilePath, FullSlug } from "../../util/path" |
| | | import { QuartzEmitterPlugin } from "../types" |
| | | |
| | | // @ts-ignore |
| | |
| | | const postscript = joinScripts(componentResources.afterDOMLoaded) |
| | | const fps = await Promise.all([ |
| | | emit({ |
| | | slug: "index" as ServerSlug, |
| | | slug: "index" as FullSlug, |
| | | ext: ".css", |
| | | content: transform({ |
| | | filename: "index.css", |
| | |
| | | }).code.toString(), |
| | | }), |
| | | emit({ |
| | | slug: "prescript" as ServerSlug, |
| | | slug: "prescript" as FullSlug, |
| | | ext: ".js", |
| | | content: prescript, |
| | | }), |
| | | emit({ |
| | | slug: "postscript" as ServerSlug, |
| | | slug: "postscript" as FullSlug, |
| | | ext: ".js", |
| | | content: postscript, |
| | | }), |