code: function getWebpackAssetAbsolutePath(
    batfishConfig: BatfishConfiguration,
    assetPath: string
  ): string {
    let pathWithoutBase = assetPath;
    if (batfishConfig.siteBasePath) {
      pathWithoutBase = assetPath.replace(
        new RegExp(`^${batfishConfig.siteBasePath}`),
        ''
      );
    }
    return path.join(batfishConfig.outputDirectory, pathWithoutBase);
  }
docs: Get the absolute path to an asset referenced by a relative path in assets.json, which Webpack generates.