File tree 1 file changed +9
-2
lines changed
packages/angular_devkit/build_angular/src/dev-server
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,14 @@ export function serveWebpackBrowser(
277
277
` ) ;
278
278
}
279
279
280
- return runWebpackDevServer ( webpackConfig , context , { logging : loggingFn } ) . pipe (
280
+ return runWebpackDevServer (
281
+ webpackConfig ,
282
+ context ,
283
+ {
284
+ logging : loggingFn ,
285
+ webpackFactory : require ( 'webpack' ) as typeof webpack ,
286
+ } ,
287
+ ) . pipe (
281
288
map ( buildEvent => {
282
289
// Resolve serve address.
283
290
const serverAddress = url . format ( {
@@ -442,7 +449,7 @@ export function buildServerConfig(
442
449
const servePath = buildServePath ( serverOptions , browserOptions , logger ) ;
443
450
const { styles, scripts } = normalizeOptimization ( browserOptions . optimization ) ;
444
451
445
- const config : WebpackDevServer . Configuration & { logLevel : string } = {
452
+ const config : WebpackDevServer . Configuration & { logLevel : string } = {
446
453
host : serverOptions . host ,
447
454
port : serverOptions . port ,
448
455
headers : { 'Access-Control-Allow-Origin' : '*' } ,
You can’t perform that action at this time.
0 commit comments