Skip to content

API > wxt > WxtHooks

Interface: WxtHooks

Contents

Properties

build:before

build:before: (wxt) => HookResult

Called before the build is started in both dev mode and build mode.

Parameters

wxt: Wxt

The configured WXT object

Source

src/types/index.ts:911


build:done

build:done: (wxt, output) => HookResult

Called once the build process has finished.

Parameters

wxt: Wxt

The configured WXT object

output: Readonly<BuildOutput>

The results of the build

Source

src/types/index.ts:917


build:manifestGenerated

build:manifestGenerated: (wxt, manifest) => HookResult

Called once the manifest has been generated. Used to transform the manifest by reference before it is written to the output directory.

Parameters

wxt: Wxt

The configured WXT object

manifest: WebExtensionManifest

The manifest that was generated

Source

src/types/index.ts:924


entrypoints:grouped

entrypoints:grouped: (wxt, groups) => HookResult

Called once all entrypoints have been grouped into their build groups.

Parameters

wxt: Wxt

The configured WXT object

groups: EntrypointGroup[]

Source

src/types/index.ts:939


entrypoints:resolved

entrypoints:resolved: (wxt, entrypoints) => HookResult

Called once all entrypoints have been loaded from the entrypointsDir.

Parameters

wxt: Wxt

The configured WXT object

entrypoints: Entrypoint[]

The list of entrypoints to be built

Source

src/types/index.ts:933


ready

ready: (wxt) => HookResult

Called after WXT initialization, when the WXT instance is ready to work.

Parameters

wxt: Wxt

The configured WXT object

Returns

Promise

Source

src/types/index.ts:905


Generated using typedoc-plugin-markdown and TypeDoc