Is it possible to include local css/js etc. ? #597
paul-hansen
started this conversation in
General
Replies: 2 comments
-
|
use absolute paths without wry scheme <link rel="stylesheet" href="/static/style.css">then your custom protocol should parse the URL as it sees fit and send back the bytes, check |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Excellent, that works. Figured I was likely missing something obvious. Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using local html files, is everyone just including it inline or is there a method to make local css and js files work?
I tried using a custom protocol and it works for the initial html, but it doesn't work for including things in the html file.
I get an
Failed to load resource: net::ERR_UNKNOWN_URL_SCHEMEerror in the dev tools console when I load a page using that. I'm on Windows so it's using the Edge webview. Any ideas?Beta Was this translation helpful? Give feedback.
All reactions