Skip to content

Commit a4bb3c9

Browse files
retlehsLog1x
andauthored
🩹 ViteMiddleware and assets config compatibility (#437)
Co-authored-by: Brandon <brandon@tendency.me>
1 parent 470ebdd commit a4bb3c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Roots/Acorn/Assets/Middleware/ViteMiddleware.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ public function handle($config)
1818
return $config;
1919
}
2020

21+
if (str_contains($config['path'], '/build')) {
22+
return $config;
23+
}
24+
2125
return [
2226
'url' => get_theme_file_uri('public/build'),
2327
'path' => public_path('build'),

0 commit comments

Comments
 (0)