Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/core/site.ts>SiteEvent

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
interface SiteEvent
implements Event
import { type SiteEvent } from "https://deno.land/x/lume@v1.12.1/core/site.ts";

Custom events for site build

Properties

type: SiteEventType

The event type

optional
files: Set<string>

Available only in "beforeUpdate" and "afterUpdate" contains the files that were changed

optional
page: Page

Available only in "beforeRenderOnDemand" contains the page that will be rendered

optional
pages: Page[]

Available only in "afterBuild", "beforeRender" and "afterUpdate" contains the list of pages that have been saved

optional
staticFiles: StaticFile[]

Available only in "afterBuild" and "afterUpdate" contains the list of static files that have been copied