DioxusLabs / DioxusLabs/dioxus

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

Open
#5,364 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.