| | |
| | | import { StaticResources } from "../resources" |
| | | import { QuartzLogger } from "../log" |
| | | import { googleFontHref } from "../theme" |
| | | import { trace } from "../trace" |
| | | |
| | | function addGlobalPageResources(cfg: GlobalConfiguration, staticResources: StaticResources, componentResources: ComponentResources) { |
| | | staticResources.css.push(googleFontHref(cfg.theme)) |
| | |
| | | } |
| | | } |
| | | } catch (err) { |
| | | console.log(chalk.red(`Failed to emit from plugin \`${emitter.name}\`: `) + err) |
| | | trace(`Failed to emit from plugin \`${emitter.name}\``, err as Error) |
| | | process.exit(1) |
| | | } |
| | | } |