#Bundling a desktop app with tailwind

1 messages · Page 1 of 1 (latest)

sharp forum
#

Hi, I'm building a dioxus desktop app. It uses tailwind. With dx serve everything works well. Have pretty much the default setup from the docs. But when I do dx bundle --desktop --package-types appimage the resulting appimage misses the styles. I do have resources = ["assets/*"] under [bundle] in the Dioxus.toml, and the tailwind css is built to assets/tailwind.css, and included in the app via

const TAILWIND_CSS: Asset = asset!("/assets/tailwind.css");
// ..
        document::Stylesheet { rel: "stylesheet", href: TAILWIND_CSS }

any ideas what could be going wrong? or any example of a dioxus app that builds fine with tailwind on desktop?

Thanks!

#

HA, it works with dx bundle --release

#

quite the footgun though

proven aspen
#

Yeah, I think dx makes assumptions about --dev = local development --release = build for production.

#

Which it probably shouldn't