The home side dominated the early exchanges and got their reward when Kion Etete rose highest to set up Lewis, who poked home past Swindon keeper Connor Ripley to score his first goal of the season after five minutes.
And 12 minutes later he had his second. The visitors failed to clear their lines and Lewis was there to fire home on his second attempt.
The Robins' best chance of the half fell to McGregor, whose guided header crashed back off the crossbar, but they were booed at half time by the visiting supporters.
Holloway's men improved after the break and almost pulled a goal back when County keeper Jordan Wright was forced into a fantastic save from Majekodunmi's header, before Cameron Norman cleared the rebound off the line.
The home side almost found a third three minutes from time, but Harrison Biggins' half volley from distance was thwarted by Ripley.
It was a professional second-display from the home side who never allowed Swindon to get a foothold in the contest. Newport held on to strengthen their play-off credentials and halt a four-game losing streak against the Robins in the league.
Newport County manager Hayden Mullins told BBC Radio Wales:
"I'm very pleased. We knew it would be tough. The start of the game was key for us, and it's good that we scored an early goal.
"At half-time, we spoke about getting a clean sheet, and I think Jordan Wright and the lads at the back put in a really good shift.
"At two goals up, no two halves are the same. We allowed Crewe back into the game [last week]. We didn't want to let Swindon back in.
"I'm really proud of the second half performance. There's loads of positives. We've got a clean sheet and picked up four points out of six."