utils/assets-utils.js
function getUrl(baseUrl, filePath) {
  const filePathWithHash = getFilePathWithHash(filePath);

  const url = `${baseUrl}${filePathWithHash.replace(/\\/gi, '/')}`;

  return url;
}
function getUrl(baseUrl, filePath) {
  const filePathWithHash = getFilePathWithHash(filePath);

  const url = `${baseUrl}${filePathWithHash.replace(/\\/gi, '/')}`;

  return url;
}
function getUrl ( baseUrl , filePath ) { const filePathWithHash = getFilePathWithHash ( filePath ) ; const url = ` ${ baseUrl } ${ filePathWithHash . replace ( / \\ / gi , '/' ) } ` ; return url ; }
Gets the URL to a hashed file name.
@param {*} baseUrl The base of the URL where the page is being served.
@param {*} filePath The path to the file.
Gets the URL to a hashed file name .