feat: optimized assets

This commit is contained in:
TrèsAbhi committed 2024-01-20 22:11:56 -06:00
1 parent 00244846cb
commit 7669c2d76b
13 files changed
+75 -78

No files matched your search

+25 -25
View File
@@ -22,42 +22,42 @@ const production = argv.includes('--production');
if (!targets && !allTargets) throw new Error('No target(s) specified');
if (allTargets || targets?.includes('definitions')) {
await buildDefinitions(production);
}
if (allTargets || targets?.includes('tankIcons')) {
await buildTankIcons(production);
}
if (allTargets || targets?.includes('scratchedFlags')) {
await buildScratchedFlags(production);
}
if (allTargets || targets?.includes('circleFlags')) {
await circleFlags(production);
}
if (allTargets || targets?.includes('tankModels')) {
await buildTankModels(production);
}
// no need to await the rest... I have enough ram
if (allTargets || targets?.includes('tankArmor')) {
buildTankArmors(production);
}
if (allTargets || targets?.includes('definitions')) {
buildDefinitions(production);
}
if (allTargets || targets?.includes('tankIcons')) {
buildTankIcons(production);
}
if (allTargets || targets?.includes('scratchedFlags')) {
buildScratchedFlags(production);
}
if (allTargets || targets?.includes('circleFlags')) {
circleFlags(production);
}
if (allTargets || targets?.includes('shellIcons')) {
await buildShellIcons(production);
buildShellIcons(production);
}
if (allTargets || targets?.includes('moduleIcons')) {
await buildModuleIcons(production);
buildModuleIcons(production);
}
if (allTargets || targets?.includes('tankArmor')) {
await buildTankArmors(production);
}
if (allTargets || targets?.includes('equipmentIcons')) {
await equipmentIcons(production);
equipmentIcons(production);
}
if (allTargets || targets?.includes('consumableIcons')) {
await buildConsumableIcons(production);
buildConsumableIcons(production);
}