Skip to content

API Reference / @gtkx/config / vite-plugin / default

Variable: default

const default: (options) => Plugin

Defined in: vite-plugin.d.ts:7

Creates a Vite plugin serving virtual:gtkx-config, the module carrying the project's resolved gtkx.config.ts.

Parameters

options

config?

() => Omit<UserConfig, "plugins">

Extra Vite configuration contributed from the plugin's config hook.

loadConfig?

ConfigLoader

Loader the configuration is resolved through, defaulting to a fresh caching loader.

name

string

Name the plugin is registered under in Vite.

Returns

Plugin

Released under the MPL-2.0 License.