File tree 1 file changed +4
-2
lines changed
packages/angular_devkit/build_angular/src/dev-server
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -417,11 +417,13 @@ function _addLiveReload(
417
417
418
418
// If a custom path is provided the webpack dev server client drops the sockjs-node segment.
419
419
// This adds it back so that behavior is consistent when using a custom URL path
420
+ let sockjsPath = '' ;
420
421
if ( clientAddress . pathname ) {
421
- clientAddress . pathname = path . posix . join ( clientAddress . pathname , 'sockjs-node' ) ;
422
+ clientAddress . pathname = path . posix . join ( clientAddress . pathname , 'sockjs-node' ) ;
423
+ sockjsPath = '&sockPath=' + clientAddress . pathname ;
422
424
}
423
425
424
- const entryPoints = [ `${ webpackDevServerPath } ?${ url . format ( clientAddress ) } ` ] ;
426
+ const entryPoints = [ `${ webpackDevServerPath } ?${ url . format ( clientAddress ) } ${ sockjsPath } ` ] ;
425
427
if ( options . hmr ) {
426
428
const webpackHmrLink = 'https://webpack.js.org/guides/hot-module-replacement' ;
427
429
You can’t perform that action at this time.
0 commit comments