| | |
| | | import { FilePath, ServerSlug } from "../../path" |
| | | import { FilePath, ServerSlug } from "../../util/path" |
| | | import { QuartzEmitterPlugin } from "../types" |
| | | |
| | | // @ts-ignore |
| | |
| | | import popoverScript from "../../components/scripts/popover.inline" |
| | | import styles from "../../styles/base.scss" |
| | | import popoverStyle from "../../components/styles/popover.scss" |
| | | import { BuildCtx } from "../../ctx" |
| | | import { StaticResources } from "../../resources" |
| | | import { BuildCtx } from "../../util/ctx" |
| | | import { StaticResources } from "../../util/resources" |
| | | import { QuartzComponent } from "../../components/types" |
| | | import { googleFontHref, joinStyles } from "../../theme" |
| | | import { transform } from "lightningcss" |
| | | import { googleFontHref, joinStyles } from "../../util/theme" |
| | | import { Features, transform } from "lightningcss" |
| | | |
| | | type ComponentResources = { |
| | | css: string[] |
| | |
| | | componentResources.afterDOMLoaded.push(plausibleScript) |
| | | } |
| | | |
| | | // spa |
| | | if (cfg.enableSPA) { |
| | | componentResources.afterDOMLoaded.push(spaRouterScript) |
| | | } else { |
| | |
| | | filename: "index.css", |
| | | code: Buffer.from(stylesheet), |
| | | minify: true, |
| | | targets: { |
| | | safari: (15 << 16) | (6 << 8), // 15.6 |
| | | ios_saf: (15 << 16) | (6 << 8), // 15.6 |
| | | edge: 115 << 16, |
| | | firefox: 102 << 16, |
| | | chrome: 109 << 16, |
| | | }, |
| | | include: Features.MediaQueries, |
| | | }).code.toString(), |
| | | }), |
| | | emit({ |