Fix support for hot reloading without requiring anything special in the app

This commit is contained in:
Dane Everitt 2018-06-06 21:44:52 -07:00
parent cbdf4d4e1a
commit 4ffe6c96ad
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 260 additions and 53 deletions

View file

@ -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);
}
/**