修复前端打包警告信息

This commit is contained in:
kerwincui
2025-03-26 11:19:22 +08:00
parent 8099d7bdcc
commit 38e236a8ff
2 changed files with 19 additions and 0 deletions

View File

@@ -93,6 +93,14 @@ export function bindLogin(data) {
});
}
export function getErrorMsg(errorId) {
return request({
url: '/auth/getErrorMsg/' + errorId,
method: 'get',
});
}
// 三方登录注册绑定
export function bindRegister(data) {
return request({

View File

@@ -68,6 +68,17 @@ module.exports = {
minRatio: 0.8, // 压缩率小于1才会压缩
}),
],
performance:{
hints: 'warning',
// 入口起点的最大体积
maxEntrypointSize: 50000000,
// 生成文件的最大体积
maxAssetSize: 35000000,
// 只给出 js 文件的性能提示
assetFilter: function (assetFilename) {
return assetFilename.endsWith('.js')
}
},
},
chainWebpack(config) {
config.plugins.delete('preload'); // TODO: need test