mirror of
https://github.com/kerwincui/FastBee.git
synced 2025-10-04 07:47:28 +08:00
修复前端打包警告信息
This commit is contained in:
@@ -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({
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user