Skip to content

Conversation

AJMaxwell
Copy link

When using mix.version(), getTypeByExtension() does not take into account the query string on the url and improperly marks all versioned assets as image. To fix, split $resourcePath by ? to give us a clean, non-versioned asset url, which we can then split by . to get the correct file extension.

When using `mix.version()`, `getTypeByExtension()` does not take into account the query string on the url and improperly marks all versioned assets as `image`. To fix, split `$resourcePath` by `?` to give us a clean, non-versioned asset url, which we can then split by `.` to get the correct file extension.
@AJMaxwell
Copy link
Author

The TravisCI phpunit tests fail due to Orchestra\Testbench in PHP 7.2 and 7.3. Otherwise, everything works normally in Laravel.

@it-can it-can mentioned this pull request Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant