Skip to content

Commit

Permalink
Fixed bug where a mix location without a prepended '/' would not work.
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxsoftwaresystems committed Sep 5, 2017
1 parent a2084fa commit 1a542fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Publiux/laravelcdn/CdnFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ public function mix($path)
if (is_null($manifest)) {
$manifest = json_decode(file_get_contents(public_path('mix-manifest.json')), true);
}
if (isset($manifest[$path])) {
return $this->generateUrl($manifest[$path], 'public/');
}
if (isset($manifest['/' . $path])) {
return $this->generateUrl($manifest['/' . $path], 'public/');
}
if (isset($manifest[$path])) {
return $this->generateUrl($manifest[$path], 'public/');
}
throw new \InvalidArgumentException("File {$path} not defined in asset manifest.");
}

Expand Down

0 comments on commit 1a542fe

Please sign in to comment.