Huddersfield Town claimed victory over fellow promotion hopefuls Stockport County after successfully protecting a 1-0 lead for almost the entire 90 minutes to extend their unbeaten League One run to 12 games.