Comments (1)
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>
<div id="main">
</div>
<!-- this is currently needed, but should probably be inserted by default in the future -->
<script type="module">
import init from "/{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>
from cli.
Related Issues (20)
- Add support for building with rustls or libssl3
- Add release tags to project HOT 1
- change hardcode output directory of tailwind.css HOT 1
- Failed to parse HOT 2
- How to make static settings available for all components HOT 2
- Error while installing dioxus-cli : HOT 3
- Doc link in readme is broken
- Bring back tool support? HOT 3
- question(bundler): how does dioxus-cli improve upon tauri bundler? HOT 2
- `dioxus translate` and `dioxus fmt` result in panic HOT 1
- Default target directory to target/dist/ HOT 7
- CLI config documentation is missing many fields
- Fix panic and more informative solution example. HOT 1
- How to run an example? HOT 4
- CLI should support CORS in dev server HOT 4
- Serve not working HOT 4
- VSCode Plugin and CLI doesn't translate the html code into rsx
- cargo install. cannot compile. HOT 2
- Init script isn't added to custom index file HOT 2
- Some errors are not reported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.