html-render-webpack-plugin
Version:
webpack plugin for rendering static HTML in a multi-config webpack build
14 lines (13 loc) • 606 B
TypeScript
import { RenderConcurrency, TransformPath, Render, BaseRoute } from "./common-types";
import { Compilation } from "webpack";
interface Params<Route> {
render: Render<Route>;
renderConcurrency: RenderConcurrency;
routes: Route[];
renderEntry: string;
renderDirectory: string;
renderCompilation: Compilation;
transformFilePath: TransformPath<Route>;
}
export default function renderRoutes<Route extends BaseRoute>({ render: performRender, renderConcurrency, routes, renderDirectory, renderCompilation, transformFilePath, }: Params<Route>): Promise<void[] | undefined>;
export {};