The US Army looked into this long ago, in the mid 1960s, using an exceedingly exotic reactor concept called the Military Compact Reactor. They imagined having a mobile energy depot where the reactor would synthesize hydrocarbon fuel for the rest of the vehicles on the move. It was abandoned because it was about 10x more expensive than fossil fuel. Kinda fun though.