No different than today, except the factories are external to the US vs internal.
BTW – the US had inflation in pre-Civil War days and the economy was heavily based on exploitation of unpaid and poorly paid workers then. This was just the nature of the US economy in the 1800s, irrespective of inflation.