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
If I have a directory called assets and a file assets/foo.txt and I set the asset_dir in Dioxus.toml to "assets", the resulting bundle (dist) will contain foo.txt, removing the original assets directory. I know Dioxus has it's own assets directory, but that can just be renamed to some unique name.
Steps To Reproduce
Steps to reproduce the behavior:
Create a new app that reads from assets/foo.txt.
Set asset_dir to "assets" in Dioxus.toml.
Run dx build.
Run the executable in dist.
Program errors because the file could not be found, but it works with dx serve or cargo run.
Expected behavior
The path should be preserved and behavior kept consistent with dx build, dx serve and cargo run.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Dioxus version: 0.5.1 crate, latest git CLI
Rust version: 1.78.0
OS info: Windows 10
App platform: desktop
The text was updated successfully, but these errors were encountered:
Problem
If I have a directory called
assets
and a fileassets/foo.txt
and I set theasset_dir
inDioxus.toml
to"assets"
, the resulting bundle (dist
) will containfoo.txt
, removing the originalassets
directory. I know Dioxus has it's ownassets
directory, but that can just be renamed to some unique name.Steps To Reproduce
Steps to reproduce the behavior:
assets/foo.txt
.asset_dir
to"assets"
inDioxus.toml
.dx build
.dist
.dx serve
orcargo run
.Expected behavior
The path should be preserved and behavior kept consistent with
dx build
,dx serve
andcargo run
.Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
The text was updated successfully, but these errors were encountered: