API Reference / @gtkx/config / vite-plugin / default
Variable: default
constdefault: (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?
Loader the configuration is resolved through, defaulting to a fresh caching loader.
name
string
Name the plugin is registered under in Vite.
Returns
Plugin