The fire occurred at the MIRteq Factory in Sturt Road around 7pm.
A 100-metre exclusion zone was set up amid fears the fire could have ignited a number of gas cylinders.
Four nearby homes were evacuated and train services were suspended along the Newcastle and Central Coast line, until the fire was brought under control.