A logistics company has announced it will be closing its Dewsbury warehouse, resulting in the loss of dozens of jobs.