resolveContentRootPath function

String resolveContentRootPath(
  1. String? contentRootPath,
  2. String basePath
)

Implementation

String resolveContentRootPath(String? contentRootPath, String basePath) {
  if (contentRootPath == null) {
    return basePath;
  }
  if (p.isRootRelative(contentRootPath)) {
    return contentRootPath;
  }
  return p.join(p.absolute(basePath), contentRootPath);
}