File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/angular_devkit/build_angular/src/dev-server Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -417,11 +417,13 @@ function _addLiveReload(
417417
418418 // If a custom path is provided the webpack dev server client drops the sockjs-node segment.
419419 // This adds it back so that behavior is consistent when using a custom URL path
420+ let sockjsPath = '' ;
420421 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 ;
422424 }
423425
424- const entryPoints = [ `${ webpackDevServerPath } ?${ url . format ( clientAddress ) } ` ] ;
426+ const entryPoints = [ `${ webpackDevServerPath } ?${ url . format ( clientAddress ) } ${ sockjsPath } ` ] ;
425427 if ( options . hmr ) {
426428 const webpackHmrLink = 'https://webpack.js.org/guides/hot-module-replacement' ;
427429
You can’t perform that action at this time.
0 commit comments