Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out_dir ignored when building for web #3328

Closed
richard-viney opened this issue Dec 10, 2024 · 2 comments
Closed

out_dir ignored when building for web #3328

richard-viney opened this issue Dec 10, 2024 · 2 comments
Labels
bug Something isn't working cli Related to the dioxus-cli program
Milestone

Comments

@richard-viney
Copy link

Problem

The out_dir in Dioxus.toml seems to be ignored when building a web app. The build is always output at target/dx/PROJECT_NAME/release/web/public.

I believe this is a regression in 0.6.0 since alpha-4.

Steps To Reproduce

Steps to reproduce the behavior:

  • dx new dxtest
  • Add out_dir = "dist" to Dioxus.toml under [application]
  • dx build --release

Gives:

1.466s INFO Build completed successfully! 🚀 path=".../target/dx/dxtest/release/web/public"

Expected behavior

The release build is copied to out_dir.

Environment:

  • Dioxus version: 0.6.0
  • Rust version: 1.83.0
  • OS info: macOS
  • App platform: web
@Nathy-bajo
Copy link
Contributor

Hi @richard-viney

I tried attempting this. #3393

Can you review it, please?

@jkelleyrtp jkelleyrtp added bug Something isn't working cli Related to the dioxus-cli program labels Jan 7, 2025
@jkelleyrtp jkelleyrtp added this to the 0.6.2 milestone Jan 9, 2025
@jkelleyrtp
Copy link
Member

Hi! We changed the format for the dioxus build dir and won't support out_dir for dx build.

However, dx bundle - which runs dx build does respect out_dir in 0.6.2 thanks to #3572.

This should be releasing shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the dioxus-cli program
Projects
None yet
Development

No branches or pull requests

3 participants