From e641df9e9cfd80fa159926ffc13257187d8bfec3 Mon Sep 17 00:00:00 2001 From: nshiro <14008307+nshiro@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:16:25 +0900 Subject: [PATCH] [1.x] Put Vite check before Mix --- src/Middleware.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Middleware.php b/src/Middleware.php index eb2a90f6..153a8fa7 100644 --- a/src/Middleware.php +++ b/src/Middleware.php @@ -32,11 +32,11 @@ public function version(Request $request) return md5(config('app.asset_url')); } - if (file_exists($manifest = public_path('mix-manifest.json'))) { + if (file_exists($manifest = public_path('build/manifest.json'))) { return md5_file($manifest); } - if (file_exists($manifest = public_path('build/manifest.json'))) { + if (file_exists($manifest = public_path('mix-manifest.json'))) { return md5_file($manifest); }