Dejamu/docs

Dejamu Documentation

GlobalThis#isBrowser

false if the code currently being executed is being executed at pre-rendering time true if it is being executed in a browser.

GlobalThis#pageDirectory

Relative path from the project root to the parent directory of the current page.

GlobalThis#projectRoot

Relative path from the current location to the project root.

<Head> ... </Head>

Append vnodes to head.

interface Config

Type declraration of dejamu.config.ts.

type DejamuPlugin

Plugin interface.

asset(loc: string): string

This hook declares dependent assets.

It should be called by components during the build process.

This feature instructs the builder to copy dependent assets and caches them when they represent external assets.