Skip to content

Add an #[embedded_css_module] macro for non dx-serve/dx-bundle enviorments. #5364

@rydb

Description

@rydb

Feature Request

the static type checking that #[css_module] macro has is very useful, but it's locked behind dx serve/dx bundle. If you are using dioxus in an environment where you don't have access to those (bevy dioxus native), (side-stepping the bundler for direct executable files), you can't use it. Asset! does work for these environments, but you lose #[css_module]'s type checking.

If there were a #[embedded_css_module], it would allow keeping css classes type checked while still being able to work in non dx serve/dx bundle-able environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions