Fix support for hot reloading without requiring anything special in the app
This commit is contained in:
parent
cbdf4d4e1a
commit
4ffe6c96ad
5 changed files with 260 additions and 53 deletions
|
@ -60,7 +60,7 @@ class AssetHashService
|
|||
$file = last(explode('/', $resource));
|
||||
$data = array_get($this->manifest(), $file, $file);
|
||||
|
||||
return '/' . ltrim(str_replace($file, array_get($data, 'src', $file), $resource), '/');
|
||||
return str_replace($file, array_get($data, 'src', $file), $resource);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue