Skip to content

Commit 2e5054a

Browse files
authored
support style file name hashes with query strings in manifest (#54219)
support manifests with style file name hashes in query strings instead of file name (for example when using https://github.com/Infomaniak/vite-plugin-query-hash)
1 parent 1472088 commit 2e5054a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Vite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ protected function makeStylesheetTagWithAttributes($url, $attributes)
800800
*/
801801
protected function isCssPath($path)
802802
{
803-
return preg_match('/\.(css|less|sass|scss|styl|stylus|pcss|postcss)$/', $path) === 1;
803+
return preg_match('/\.(css|less|sass|scss|styl|stylus|pcss|postcss)(\?[^\.]*)?$/', $path) === 1;
804804
}
805805

806806
/**

0 commit comments

Comments
 (0)