fuse-box
Version:
Fuse-Box a bundler that does it right
22 lines (21 loc) • 684 B
TypeScript
import { FuseBox } from "../";
import { ServerOptions } from "./Server";
export interface HTTPServerOptions {
/** Defaults to 4444 if not specified */
port?: number;
/**
* If specfied this is the folder served from express.static
* It can be an absolute path or relative to `appRootPath`
**/
root?: string | boolean;
}
export declare class HTTPServer {
private fuse;
static start(opts: any, fuse: FuseBox): HTTPServer;
app: any;
opts: HTTPServerOptions;
constructor(fuse: FuseBox);
launch(opts: HTTPServerOptions, userSettings?: ServerOptions): void;
serveStatic(userPath: any, userFolder: any): void;
private setup();
}