UNPKG

varan

Version:

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

25 lines (24 loc) 895 B
/// <reference types="webpack-dev-server" /> import { Configuration } from 'webpack'; export interface ServerOptions { appDir: string; entry: string; name?: string; env: Configuration['mode']; target: Configuration['target']; clientTargetDir: string; targetDir: string; sourceDir: string; buildVars: { [key: string]: string; }; whitelistExternals: string[]; } declare const _default: (options?: Partial<ServerOptions>) => Configuration; /** * Create a webpack configuration optimized for server (node) applications * * @param {{ appDir: string=, buildVars: object=, entry: string=, env: 'development' | 'test' | 'production'=, target: 'web' | 'node'=, name: string=, targetDir: string=, sourceDir: string=, clientSourceDir: string=, whitelistExternals: string[]= }=} options * @returns {webpack.Configuration} */ export default _default;