Closed brodycj closed 4 years ago
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Capacitor Version
Platform(s)
Android (behavior looks correct on iOS)
Current Behavior
With a script tag like this:
I would encounter failures like these log messages:
Expected Behavior
It should be able to use script in a subdirectory starting with underscore (
_
).Code Reproduction
https://github.com/brodybits/capacitor-subdir-test - reproduces with these assets in the
www
subdirectory tree:www/index.html
:www/subdir1/log1.js
:www/_underscore_subir/log2.js
:Some log output on iOS
Some log output on Android:
Other Technical Details
npm --version
output:6.14.7
node --version
output:v12.18.3
Additional Context
This is one of the issues I encountered when trying out CapacitorJS with Snowpack and Vue: https://github.com/pikapkg/snowpack/discussions/905
Nothing super-critical, but I would love to see it resolved someday.
I did take a quick look at the code in
android/capacitor/src/main/java/com/getcapacitor/WebViewLocalServer.java
with the error message but have not seen a smoking gun so far.