Match-id-e456d019c62346818598f061397c18e80fc77c23

This commit is contained in:
* 2023-07-31 15:59:06 +08:00
commit fa4d6c695a
1 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,18 @@ const devServerOptions = {
port: '8890',
open: true,
historyApiFallback: true, // 使用HTML5 History API时/dashboard 会返回404需要这个配置项解决
client: {
overlay: {
errors: true,
warnings: false,
runtimeErrors: (error) => {
if (error.message === "ResizeObserver loop limit exceeded") {
return false;
}
return true;
},
},
},
};
const server = new WebpackDevServer(compiler, devServerOptions);