You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I've actually tried this change out and it solves the issue)
A similar issue has already been fixed for the assets compilation process / asset csp modification, see #5247 (and also #4410) but the web_dev_server hasn't catched up with this change.
Reproduction
cargo create-tauri-app
Select plain vanilla HTML/CSS/JavaScript
Add the following template element before the closing body tag in src/index.html:
Describe the bug
When serving html files through
web_dev_server
by usingcargo tauri dev
, anytemplate
element contents in the served HTML are removed.While looking further into this issue, the culprit seem to be this:
tauri/tooling/cli/src/helpers/web_dev_server.rs
Line 129 in db7765e
FMPOV, this should be changed to:
(I've actually tried this change out and it solves the issue)
A similar issue has already been fixed for the assets compilation process / asset csp modification, see #5247 (and also #4410) but the
web_dev_server
hasn't catched up with this change.Reproduction
cargo create-tauri-app
Select plain
vanilla
HTML/CSS/JavaScriptAdd the following
template
element before the closingbody
tag insrc/index.html
:cargo tauri dev
template
element is emptyExpected behavior
HTML
template
element contents should be served properly.For the example above, I would expect to see the following children when inspecting the DOM:
Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: