The fire crew battled to stop the blaze from spreading to other buildings and helped 20 people evacuate from nine homes at the rear of the fire scene.
They applied breathing apparatus and worked to cut off the fire before entering the building to put out the flames.
At one point, fire crews were forced to abandon entry to the site as they were concerned that the back wall of the warehouses could collapse due to a thick blanket of smoke.
Authorities said it took them four hours to bring the fire under control.
Fire And Rescue NSW (TRNSW) is now investigating the cause of this accident.
Subscribe to The Briefing, Australia's fastest-growing news podcast on Listnr today. The Briefing serves up the latest news headlines and a deep dive into a topic affecting you. All in under 20 minutes.