st-bundle
Version:
CLI for watching and bundling SpringType projects.
42 lines (41 loc) • 1.05 kB
TypeScript
import { Context } from '../core/Context';
export declare type IDevServerProxy = {
[key: string]: {
target?: string;
changeOrigin?: boolean;
pathRewrite?: {
[key: string]: string;
};
};
};
export interface IHMRServerProps {
enabled?: boolean;
useCurrentURL?: boolean;
port?: number;
connectionURL?: string;
}
export interface IHTTPServerProps {
enabled?: boolean;
port?: number;
fallback?: string;
root?: string;
express?: (app: any, express: any) => void;
}
export interface IOpenProps {
background?: boolean;
wait?: boolean;
target?: string;
app?: string | Array<string>;
}
export interface IProxyCollection {
path: string;
options: any;
}
export interface IDevServerProps {
enabled?: boolean;
open?: boolean | IOpenProps;
proxy?: Array<IProxyCollection>;
httpServer?: IHTTPServerProps | boolean;
hmrServer?: IHMRServerProps | boolean;
}
export declare function createDevServerConfig(ctx: Context): IDevServerProps;