[build,index][s]: handle switch from files => resources.