Skip to content

Commit

Permalink
support style file name hashes with query strings in manifest (#54219)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
newapx authored Jan 16, 2025
1 parent 1472088 commit 2e5054a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ protected function makeStylesheetTagWithAttributes($url, $attributes)
*/
protected function isCssPath($path)
{
return preg_match('/\.(css|less|sass|scss|styl|stylus|pcss|postcss)$/', $path) === 1;
return preg_match('/\.(css|less|sass|scss|styl|stylus|pcss|postcss)(\?[^\.]*)?$/', $path) === 1;
}

/**
Expand Down

0 comments on commit 2e5054a

Please sign in to comment.