---
url: /api/reference/wxt/functions/createServer.md
---

[API](../../packages.md) / [wxt](../index.md) / createServer

# Function: createServer()

> **createServer**(`inlineConfig?`): `Promise`<[`WxtDevServer`](../interfaces/WxtDevServer.md)>

Source: [packages/wxt/src/create-server.ts:32](https://github.com/wxt-dev/wxt/blob/385a5f49b5d7bf9e4a235f971b3aeb0a12a97a3d/packages/wxt/src/create-server.ts#L32)

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

## Parameters

### inlineConfig?

[`InlineConfig`](../interfaces/InlineConfig.md)

## Returns

`Promise`<[`WxtDevServer`](../interfaces/WxtDevServer.md)>

## Example

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

***

Generated using [typedoc-plugin-markdown](https://www.npmjs.com/package/typedoc-plugin-markdown) and [TypeDoc](https://typedoc.org/)
