The Slovenes used threats againts the family members of the Yugoslav soldiers and also had many in the Yugoslav army leadership who defected with the army plans.
Basically there wasn't much fighting or interest in fighting to keep Slovenia.
Additionally Britain had sent the Slovenes with millions of military communication equipment shortly before the war broke out and there was smuggling of other weapons and help from other countries.
The Slovenes actually had it the best in Yugoslav because they had the leadership positions and even moved a lot of the choice industry from Serbia to Slovenia.
Now they are "independent" under EU dictates rather than ruling the roost in Yugoslavia and they are unhappy about that.
Slovenes want control over all of former Yugoslavia? Nice try.
Yugoslavia was a Serbian empire from start to finish.
It’s the Serbs who hang onto Montenegro with their teeth.
Slovenes will take EU membership over Balkan swampland any day.