Skip to content

API > wxt > clean

Function: clean()

clean(config)

clean(config?): Promise<void>

Remove generated/temp files from the directory.

Parameters

config?: InlineConfig

Optional config that will override your <root>/wxt.config.ts.

Returns

Example

ts
await clean();

Source

packages/wxt/src/core/clean.ts:16

clean(root)

clean(root?): Promise<void>

Remove generated/temp files from the directory.

Parameters

root?: string

The directory to look for generated/temp files in. Defaults to process.cwd(). Can be relative to process.cwd() or absolute.

Returns

Deprecated

Example

ts
await clean();

Source

packages/wxt/src/core/clean.ts:27


Generated using typedoc-plugin-markdown and TypeDoc