I tend to put any basing that requires paint on first unless I'm doing something that would mount above it easily.
With dirt and the like, having your mini in place fits them into the scene of the base where it looks like they're standing there with the weight pressing in and around the feet, but if you're putting them on a rock or something solid, well, you can paint them separately without adding the minor disconnect there.