Los Angeles’ Scott Van Slyke puts the Dodgers ahead with a lead-off homer in the 12th inning of the second game. Drew Butera added another homer in the inning, and the Dodgers hung on for a victory.

Tom Olmscheid / AP

MINNEAPOLIS — After Yasiel Puig carried the Dodgers early, it was little-known Scott Van Slyke and Drew Butera who came up big at the end of a long day.

Van Slyke and Butera homered in the 12th inning Thursday, and Los Angeles held on to beat the Minnesota Twins 4-3 to earn a sweep of the day-night doubleheader.

Adrian Gonzalez also homered for the Dodgers, who stranded 16 runners in the 5-hour-11-minute second game.

“At this time of the night, when you’ve played all night and you’ve put a couple wins under your belt, you’re willing to take them, move forward and know that you got to play better to get where you want to go,” Dodgers manager Don Mattingly said.

Puig tied a career high with four hits in L.A.’s 9-4 Game 1 win and added two more in the nightcap. Before grounding out in the fifth, Puig had reached base in nine consecutive plate appearances.

Joe Mauer had three hits for the Twins, who walked 12 in the second game and 18 total.

Van Slyke led off the 12th and lined a 2-1 pitch from Brian Duensing (0-1) into the bullpen in left-center field. Butera hit his first homer since July 12, 2012, when he played for the Twins.

“It feels nice to hit a home run any time,” said Butera, who caught all 12 innings.

“It’s mentally and physically taxing,” he continued. “You don’t want to make any mistakes. You want to be in the game physically as much as you are mentally.”

Jamey Wright (2-1) didn’t allow a run in three innings of relief.

Kenley Jansen loaded the bases in the 12th and allowed Mauer’s sacrifice fly, but got Chris Colabello to line out to first for his 11th save in 13 chances.

“I didn’t know if it was going to take off,” Colabello said. “It was pretty true. I didn’t really side-spin it at all, maybe hoping that it was going to get over his head or get a deflection, or something like that.”

Juan Uribe had four hits and two RBIs in the first game and another RBI in the second.

When Puig wasn’t getting hits, he still grabbed the spotlight.

The Cuban outfielder was tagged out when he flinched toward second after beating out an infield single in his first at-bat in Game 2. In the bottom of the first, Puig airmailed the cutoff man on a sacrifice fly, allowing two Twins runners to advance.

Home plate umpire Tim Timmons missed a catcher’s interference call when Puig fouled off the first pitch during a key at-bat in the sixth.

Dan Haren (4-0) struck out seven in 6⅔ innings to win the first game.