1. A method, comprising: identifying conditions under which resources are applicable to a build of an application, the conditions define applicability information for associated resources of the application; creating an index which enumerates the resources, references to resources, and conditions associated with the resources and references; recognizing, using a processing device, tokens to find resources that meet specific applicability information of a resource package for the application; and partitioning, using the processing device, the resources into the resource package for use by the application based on the associated conditions and partitioning of index indices; wherein the partitioning includes determining whether to store a reference of the references in the resource package, and causing the reference to be stored in the resource package responsive to a result of the determination.