interface IRoute { path: string; component: string; } export declare class ProjectConfig { /** * Title for html . */ title?: string; /** * Dev server port, when execute npm start. */ devPort?: number; /** * Output main file name. */ outFileName?: string; /** * Output main css file name. */ outCssFileName?: string; /** * Bundle file name */ bundleFileName?: string; /** * Specify the development url, work both for `npm start` and `npm run preview`. * In most scenes, it should not be configured. * > Conflict with `devPort` */ devUrl?: string; /** * Dist dir path. * Only take effect on `npm run build` | `vai build`. */ distDir?: string; /** * Assets public path. `"https://www.some.com"`, `"https://www.some.com/somePath"`, `"/somePath"`. * If not set, result: `/<distPath>`. * If set /somePath for example, result: `/somePath/<distPath>`. * If set some.com for example, result: `https://www.some.com/<distPath>`. * If set some.com/somePath for example, result: `https://www.some.com/somePath/<distPath>`. * Only take effect on `npm run build` | `vai build`. */ publicPath?: string; /** * Base href for all pages. * For example, `/admin` is the root path after deploy, you should set baseHref to `/admin`. * There is no need to modify the code, routing `/` can automatically maps to `/admin`. * Only take effect on `npm run build` | `vai build` */ baseHref?: string; /** * Custom env. */ customEnv?: { [key: string]: any; }; /** * Using https for server. */ useHttps?: boolean; /** * Use service worker * Warning: if disable it, mocks, prefetch, serverRender will become invalid. */ useServiceWorker?: boolean; /** * Client server render * Warning: depend on service worker, should set useServiceWorker=true first. */ clientServerRender?: boolean; /** * Custom routes. When this configuration exists, it will not parse the `pages` directory. */ routes?: IRoute[]; /** * Enable hash router. */ useHashRouter?: boolean; /** * Specify source file root path, for example `sourceRoot='app/client'`, will lead to `app/client/src` and `app/client/tests`. */ sourceRoot?: string; /** * Suggestion to open! */ unexpectedFileCheck: boolean; } export {};