[webpack-hot-middleware] Add missing 'path' option to ClientOptions (#43875)

This commit is contained in:
Anton Kudinov 2020-04-18 00:21:12 +03:00 committed by GitHub
parent 1ace1d69bd
commit b78e68187c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ declare function WebpackHotMiddleware(
declare namespace WebpackHotMiddleware {
interface ClientOptions {
path?: string;
reload?: boolean;
name?: string;
timeout?: number;

View File

@ -13,6 +13,7 @@ webpackHotMiddlewareInstance = webpackHotMiddleware(compiler, {
});
const clientOpts: webpackHotMiddleware.ClientOptions = {
path: '/__webpack_hmr',
reload: true,
name: '__webpack_hmr_custom_bundle_name',
timeout: 1000,