es-dev-server
Version:
Development server for modern web apps
10 lines (9 loc) • 353 B
TypeScript
import { Middleware } from 'koa';
import { Plugin } from '../Plugin';
export interface PluginServeMiddlewareConfig {
plugins: Plugin[];
}
/**
* Sets up a middleware which allows plugins to serve files instead of looking it up in the file system.
*/
export declare function createPluginServeMiddlware(cfg: PluginServeMiddlewareConfig): Middleware;