File tree 1 file changed +0
-20
lines changed
packages/angular_devkit/build_angular/src/webpack/configs
1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -92,26 +92,6 @@ export async function getDevServerConfig(
92
92
publicPath : servePath ,
93
93
stats : false ,
94
94
} ,
95
- setupMiddlewares : ( middlewares , _devServer ) => {
96
- // Temporary workaround for https://github.com/webpack/webpack-dev-server/issues/4180
97
- middlewares . push ( {
98
- name : 'options-request-response' ,
99
- path : '*' ,
100
- middleware : ( req : Request , res : Response , next : NextFunction ) => {
101
- if ( req . method === 'OPTIONS' ) {
102
- res . statusCode = 204 ;
103
- res . setHeader ( 'Content-Length' , 0 ) ;
104
- res . end ( ) ;
105
-
106
- return ;
107
- }
108
-
109
- next ( ) ;
110
- } ,
111
- } ) ;
112
-
113
- return middlewares ;
114
- } ,
115
95
liveReload,
116
96
hot : hmr && ! liveReload ? 'only' : hmr ,
117
97
proxy : await addProxyConfig ( root , proxyConfig ) ,
You can’t perform that action at this time.
0 commit comments