API Reference / @gtkx/config / @gtkx/config/vite-plugin / default
Function: default()
default(
options):Plugin
Defined in: packages/config/src/vite-plugin.ts:42
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.
localeDir?
string | null
Catalog directory for development or tests, resolved relative to the project root.
name
string
Name the plugin is registered under in Vite.
Returns
Plugin