Plans to develop a prominent town centre site into industrial units have been granted, despite previously being earmarked for flats.