/** * Static Assets Plugin for Vite * * Supports importing static files from shared/static directory: * - JSON files → bundled into HTML, injected as window.__STATIC_JSON__ * - Other files → converted to URL {clientBasePath}/static/path * * Usage: * import config from '@shared/static/config.json'; * import logoUrl from '@shared/static/images/logo.png'; */ import type { Plugin } from 'vite'; export interface StaticAssetsPluginOptions { /** * Client base path prefix for routes * @default '' */ clientBasePath?: string; /** * Root directory for the project * @default process.cwd() */ rootDir?: string; } export declare function staticAssetsPlugin(options?: StaticAssetsPluginOptions): Plugin; export default staticAssetsPlugin; //# sourceMappingURL=static-assets-plugin.d.ts.map