diff --git a/src/Vite.php b/src/Vite.php index 1887361a..1464e3a3 100644 --- a/src/Vite.php +++ b/src/Vite.php @@ -15,6 +15,6 @@ class Vite extends BaseVite // todo move to a different directory in v4 */ protected function assetPath($path, $secure = null) { - return global_asset($path); + return $this->assetPathResolver ? ($this->assetPathResolver)($path, $secure) : global_asset($path); } }