mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: upgrade packages and hash size
This commit is contained in:
1 parent
4bf16b2784
commit
0cf108d534
4 files changed
+18
-21
No files matched your search
@@ -57,8 +57,8 @@ async function runWebpack({
|
||||
if (!file.isFile() || file.name.endsWith('.map')) continue;
|
||||
const data = await fs.stat(path.join(root('public'), file.name));
|
||||
const key = file.name
|
||||
.replace(/\.[a-f0-9]{4}\.chunk\./, '.chunk.')
|
||||
.replace(/\.[a-f0-9]{4}\.worker\./, '.worker.');
|
||||
.replace(/\.[a-f0-9]{6}\.chunk\./, '.chunk.')
|
||||
.replace(/\.[a-f0-9]{6}\.worker\./, '.worker.');
|
||||
stats[key] = data.size;
|
||||
}
|
||||
const statsPath = root('__bundleInfo');
|
||||
|
||||
Reference in new issue
Block a user