vite-plugin-ra-pages
Version:
Vite plugin to automatically generate routes for React-Admin based on folder structure.
21 lines (17 loc) • 441 B
TypeScript
import { PluginOption } from 'vite';
type ModeScan = "legacy" | "v2";
type RAOpts = {
root?: string;
pageDir?: string;
cacheDir?: string;
raAdminId?: string;
raAdminFile?: string;
raMenuId?: string;
raMenuFile?: string;
raPkg?: string;
mode?: ModeScan;
lazyLoad?: boolean;
withRole?: boolean;
};
declare const raPages: (raOpts?: RAOpts) => PluginOption;
export { raPages as default, raPages };