UNPKG

varan

Version:

A webpack starter kit for offline-first bring-your-own-code apps with server side rendering

15 lines (14 loc) 509 B
/// <reference types="webpack-dev-server" /> import webpack from 'webpack'; export interface Options { inputFileSystem?: webpack.Compiler['inputFileSystem']; outputFileSystem?: webpack.Compiler['outputFileSystem']; } export interface Output { compiler: webpack.Compiler; stats: webpack.Stats; watcher: webpack.Compiler.Watching; errors: string[]; warnings: string[]; } export default function buildServer(config: webpack.Configuration, options: Partial<Options>): Promise<Output>;