No, you don’t lose resources from defending your War Base. The Territory Loot that is available to enemies in your War Base doesn’t come from your Town, so your hard-earned resources are safe.