From the official Star Wars Databank:
Blockquote Hyperdrives allow starships to travel faster than the speed of light, crossing space through the alternate dimension of hyperspace. Large objects in normal space cast “mass shadows” in hyperspace, so hyperspace jumps must be precisely calculated to avoid collisions
Apparently, this maneuver works, but only if you are jumping a massive object.
It is hard to tell how massive something has to be for that to work, but we can chalk it up to plot that the lost ships wouldn't have been massive enough.
In terms of war economy it is easy to see why this tactic isn't widely used by a smaller force as well(as is the case with the Resistance). In terms of battle economy, if you keep throwing big, expensive ships like that at your enemy, you might be able to cause more damage than your ship is worth, but that still doesn't mean you will be able to cause more damage than the ship is worth to you. In such a small force, the loss of a cruiser might be devastating, therefore it might only be thought as an strategy in last resort. This is the basis of utility theory in economy.
In regards to war economy that would have made more sense if done much earlier, as instead of losing 3 ships, they would just have lost the bigger one. But that still wouldn't be a guarantee win, since destroying the Supremacy clearly didn't stop the First Order from attacking Crait, and it might have even pushed the First Order into a fiercer attack.
Remember that the First Order only continued this starvation tactic because they believed the rebels had no escape, and maintaining this tactic would be more efficient than losing more fighters on a long range engagement. By poking it's big ship, they would be risking enraging the quiet lion into an attack.