#dx bundle --release and CSSs

1 messages · Page 1 of 1 (latest)

fierce fjord
#

Hi, I have a problem with bundling my app. Launching the command dx bundle --platform desktop --package-types "deb" , I create the deb. When I launch my program, it starts without any css.

#[component]
pub fn app() -> Element {
    rsx! {
        document::Link { rel: "icon", href: FAVICON }
        document::Link { rel: "stylesheet", href: TAILWIND_CSS }
        document::Link { rel: "stylesheet", href: STYLES_CSS }

        Router::<Route> {}
    }
}

I have loaded in this way the css.

Dioxus 0.6.1
Dioxus-desktop: 0.6.1

Cargo.toml extract:

[features]
default = ["desktop"]
web = ["dioxus/web"]
desktop = ["dioxus/desktop"]
mobile = ["dioxus/mobile"]

[profile]

[profile.wasm-dev]
inherits = "dev"
opt-level = 1

[profile.server-dev]
inherits = "dev"

[profile.android-dev]
inherits = "dev"

(continue...)

#

I guess that the problem is here (Dioxus.toml) but I have not found any information online:

[application]
name = "screen-caster"

[web.app]
title = "Screen Caster"

[web.resource]
style = [
    "assets/tailwind.css",
    "assets/style.css"
]

script = []

[web.resource.icons]
favicon = "assets/icons/favicon.ico"

[web.resource.dev]
script = []

[desktop]
resources = "assets"


[build]
pre-build = "npx tailwindcss -i ./assets/input.css -o ./assets/tailwind.css --watch --minify"