mirror of https://github.com/alibaba/ice.git
fix: support custom middleware on dev server (#6520)
This commit is contained in:
parent
1e4b20af84
commit
b748810588
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@ice/rspack-config': patch
|
||||
---
|
||||
|
||||
fix: support custom middleware on dev server
|
||||
|
|
@ -54,6 +54,7 @@ const getConfig: GetConfig = (options) => {
|
|||
proxy,
|
||||
devServer = {},
|
||||
plugins = [],
|
||||
middlewares,
|
||||
} = taskConfig || {};
|
||||
const absoluteOutputDir = path.isAbsolute(outputDir) ? outputDir : path.join(rootDir, outputDir);
|
||||
const hashKey = hash === true ? 'hash:8' : (hash || '');
|
||||
|
|
@ -161,6 +162,7 @@ const getConfig: GetConfig = (options) => {
|
|||
logging: 'info',
|
||||
},
|
||||
...devServer,
|
||||
setupMiddlewares: middlewares,
|
||||
},
|
||||
};
|
||||
return config;
|
||||
|
|
|
|||
Loading…
Reference in New Issue