No,no,no; you misunderstand.
You store the mines inside the cockpit next to you, and you or your co-conspirator physically tosses them out of the open-to space crew hatch. I have seen sillier ideas actually carried out in WW2 and Cold War weapons tests. If you can send a pod with a monkey into space, then by golly you can throw this mine at them; no inertia, no weight, no problem.
(Inertial dampeners are standard on Star Wars ships.)
Edited by OneKelvin