I have done this both ways.
Once I had a shop narrow a rear axle for me and I narrowed a front axle myself.
A lot of time, measurements and skill required to DIY it. On the front axle, I took a 1976 Camper Special Dana 44 axle from a 3/4 ton Chevy truck and cut 9" out of the long side (in this case drivers side), axle tube. I re-attached and welded the inner "C" back in place making sure I had plenty of caster matching the passenger side to create a passenger "drop" wide-track CJ-7 axle for my Cummins 4BT powered CJ. Removed the 8x6.5" wheel parts and swapped them for 5x5.5" parts to match the CJ original wheel pattern. The axle tubes on a camper special GM axle in those years is spring-over, what I wanted and the tubes are 2 3/4"x5/8" thick beef! I did this because I had the axle already or I probably would have bought a Ford HP60 1-Ton to narrow instead. I saved a lot of money using what I had.
The rear axle was the popular Sterling design 2001 Ford Explorer 8.8 axle that I had narrowed to take two passenger side shafts making it almost exactly the same width as the original AMC-20 it replaced. This had the benefit of almost perfectly centering the housing, gave me 4-wheel disc brakes and a lot stronger 31 spline rear axle shaft assembly. The tubes on this axle were .250" wall and 3.25" diameter so bending moment for these tubes is a LOT higher than stock 2.500" Jeep. The axle shafts are 1050 steel as opposed to 1040 steel used in Dana axles. The shafts are 1.32" cross section, 31 splines with a better angle cut making the shafts up to 30% stronger part-for-part than comparable Dana 44 shafts. I re-drilled the flange out to 5x5.5" bolt pattern used on all CJ's so it would match the front axle. The ring & pinion in my camper special Dana 44 was 4.11 so the factory Ford 4.10 gears in the 8.8 matched my Chevy Dana 44 front perfectly. Detroit lockers, ring & pinions and armored diff covers were much less money and way more popular for the Ford Sterling 8.8 at the time over the AMC-20 housing that was paper thin. I used an 8.8 out back because it was only $125 at the time on 1/2 price day at the yard and I could lift it into the bed of the truck by myself!
This example vehicle had leaf spring suspension making it far easier to do than a TJ with coils and control arms. I think you will find it very expensive to narrow any axle, especially when you have to buy all the brackets for suspension to weld onto them afterwards. It just isn't cost effective unless upgrading to major beef, say to Dana 60, 10.5 or 14 bolt 1-ton class axles.
Rick