-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support different plugin/theme paths than default ones #107
Comments
I'm not seeing that issue on my personal site, for example. Can you please provide a sample URL? |
I will try to prepare a minimal reproducible example for this issue. Where are the enqueued styles/scripts removed in minit? I cannot find a wp_dequeue_script(...) invocation. |
@kasparsd: |
I found the reason, and the issue is actually not that the original file links aren't removed but those are skipped |
Thank you @strarsis. That should only happen with "pseudo" packages or external scripts/styles. Does it fail at expanding the relative path in your case? Can you please debug it further? |
@kasparsd: Yes, this also fails with "regular" assets. // Check if this is a local asset which we can include
$src_parts = explode( $base_url, $item_url ); The variables are set like this: $base_url = '//<hostname>/wp';
$item_url = 'http://<hostname>/app/plugins/flowplayer5/frontend/assets/flowplayer-v6/flowplayer.js'; The |
@kasparsd: An alternative approach would be requesting the resources from itself (the server), localhost with Hostname or even over its public facing IP address. This would guarantee 100% path resolution in all situation and even finding out issues with resources (404, not found). |
A link to minit combined styles and javascript is added but the original script/style links are not removed.
The text was updated successfully, but these errors were encountered: