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
{{ message }}
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
Lets say i want to add some classes and styles to html, body and div[id=main] tags, but if i change ./assets/index.html it will be rewritten after next run of dioxus serve command. So how to make persistent changes?
The text was updated successfully, but these errors were encountered:
If you create a html file in the root of your project the dioxus cli will use it. We need to document this feature and probably insert the init script by default in the future
<!DOCTYPE html><html><head></head><body><divid="main"></div><!-- this is currently needed, but should probably be inserted by default in the future --><scripttype="module">importinitfrom"/{base_path}/assets/dioxus/{app_name}.js";init("/{base_path}/assets/dioxus/{app_name}_bg.wasm").then(wasm=>{if(wasm.__wbindgen_start==undefined){wasm.main();}});</script></body></html>
Lets say i want to add some classes and styles to
html
,body
anddiv[id=main]
tags, but if i change./assets/index.html
it will be rewritten after next run ofdioxus serve
command. So how to make persistent changes?The text was updated successfully, but these errors were encountered: