def remap_path_to_build_directory(path, directory_info)
      base_directory = @base_dir.join(directory_info[:from]).to_s
      @output_dir.join(path.to_s.sub(/\A#{base_directory}\/?/, directory_info[:as] + '/'))
    end
def remap_path_to_build_directory(path, directory_info)
      base_directory = @base_dir.join(directory_info[:from]).to_s
      @output_dir.join(path.to_s.sub(/\A#{base_directory}\/?/, directory_info[:as] + '/'))
    end
Helper function that converts a source path to an equivalent path in the
 output directory