Skip to content

API / wxt / createServer

Function: createServer()

createServer(inlineConfig?): Promise<WxtDevServer>

Source: packages/wxt/src/core/create-server.ts:23

Creates a dev server and pre-builds all the files that need to exist before loading the extension.

Parameters

inlineConfig?

InlineConfig

Returns

Promise<WxtDevServer>

Example

ts
const server = await wxt.createServer({
    // Enter config...
  });
  await server.start();

Generated using typedoc-plugin-markdown and TypeDoc