mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-21 12:53:56 +01:00
feat: more compression
This commit is contained in:
1 parent
afe041f969
commit
1575b803c0
11 files changed
+135
-59
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { asset } from './asset';
|
||||
import { fetchBkonLz4 } from './fetchBkonLz4';
|
||||
|
||||
type EquipmentOptions = [number, number];
|
||||
|
||||
@@ -21,6 +22,6 @@ export interface EquipmentDefinitions {
|
||||
};
|
||||
}
|
||||
|
||||
export const equipmentDefinitions = fetch(asset('definitions/equipment.json'), {
|
||||
cache: 'no-cache',
|
||||
}).then(async (response) => response.json() as Promise<EquipmentDefinitions>);
|
||||
export const equipmentDefinitions = fetchBkonLz4<EquipmentDefinitions>(
|
||||
asset('definitions/equipment.bkon.lz4'),
|
||||
);
|
||||
Reference in new issue
Block a user