I would not do it - if this is a single phase input/three phase output VFD then the supply cable will be carrying more current than the motor cable. As mentioned, vibration and muck are serious enemies of electronics.