API Reference / @gtkx/config / vite-plugin / default
Function: default()
default(
options):Plugin
Defined in: packages/config/src/vite-plugin.ts:32
Creates a Vite plugin serving virtual:gtkx-config, the module carrying the project's resolved gtkx.config.ts.
Parameters
options
config?
(config) => Omit<UserConfig, "plugins">
Extra Vite configuration contributed from the plugin's config hook, given the user's own configuration.
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