private static function getMainJsFileName(string $realPath): string
  {
    $parts = pathinfo($realPath);

    return $parts['dirname'].'/'.$parts['filename'].'.main.'.$parts['extension'];
  }
private static function getMainJsFileName(string $realPath): string
  {
    $parts = pathinfo($realPath);

    return $parts['dirname'].'/'.$parts['filename'].'.main.'.$parts['extension'];
  }
private static function getMainJsFileName ( string $ realPath ) : string { $ parts = pathinfo ( $ realPath ) ; return $ parts [ 'dirname' ] . '/' . $ parts [ 'filename' ] . '.main.' . $ parts [ 'extension' ] ; }
Returns the 'main' file of a page specific main JavaScript file.

@param string $realPath

@return string
Returns the main file of a page specific main JavaScript file .