Livingston survived a second-half comeback from Dundee to claim victory.
Iain Russell volleyed home from Bobby Barr's cross and Kenny Deuchar converted Keaghan Jacobs' centre to double the lead nine minutes later.
Deuchar slotted home from close range after 59 minutes, but Dundee's Gary Irvine headed home Nicholas Riley's cross two minutes later.
Goalkeeper Andrew McNeil fumbled into his own net after another four minutes, but Jacobs lashed in on 90 minutes.
Livingston: McNeil, Brown, Craig Barr, Watson, Talbot, Keaghan Jacobs, Fox, Scougall, Bobby Barr (Kyle Jacobs 67), Russell (Boulding 73), Deuchar (Sinclair 87). Subs Not Used: Jamieson, McNulty.
Booked: Brown, Craig Barr.
Goals: Russell 4, Deuchar 13, 59, Keaghan Jacobs 90.
Dundee: Douglas, Irvine, McKeown, Weston (Hyde 85), Lockwood, Riley, Chisholm (Conroy 62), O'Donnell, McCluskey, Bayne, Milne. Subs Not Used: Gibson, McGregor, Mcintosh.
Booked: O'Donnell, McKeown, Bayne.
Goals: Irvine 61, McNeil 65 og.
Ref: Gary Hilland