Current section
Files
Jump to
Current section
Files
priv/vitex/dist/index.d.ts
import { PluginOption, Rollup } from "vite";
import { Config as FullReloadConfig } from "vite-plugin-full-reload";
interface PluginConfig {
/**
* The path or paths of the entry points to compile.
*/
input: string | string[] | Rollup.InputOption;
/**
* Phoenix's public directory.
*
* @default 'priv/static'
*/
publicDirectory?: string;
/**
* The public subdirectory where compiled assets should be written.
*
* @default 'assets'
*/
buildDirectory?: string;
/**
* The path to the "hot" file.
*
* @default 'priv/hot'
*/
hotFile?: string;
/**
* The path to the manifest file.
*
* @default 'priv/static/assets/manifest.json'
*/
manifestPath?: string;
/**
* The path of the SSR entry point.
*/
ssr?: string | string[] | Rollup.InputOption;
/**
* The directory where the SSR bundle should be written.
*
* @default 'priv/ssr'
*/
ssrOutputDirectory?: string;
/**
* Enable React Refresh (for React projects).
*
* @default false
*/
reactRefresh?: boolean;
/**
* Configuration for performing full page refresh on file changes.
*
* {@link https://github.com/ElMassimo/vite-plugin-full-reload}
* @default false
*/
refresh?: boolean | string | string[] | RefreshConfig | RefreshConfig[];
/**
* Detect TLS certificates for local development.
* Can be set to true to auto-detect, false to disable, or a string for a specific host.
*
* @default null
*/
detectTls?: string | boolean | null;
/**
* Transform the code while serving.
*/
transformOnServe?: (code: string, url: string) => string;
}
interface RefreshConfig {
paths: string[];
config?: FullReloadConfig;
}
export declare const refreshPaths: string[];
export default function phoenix(config: string | string[] | PluginConfig): PluginOption[];
export { phoenix };