stylers icon indicating copy to clipboard operation
stylers copied to clipboard

`style_sheet!` macro not working.

Open tkr-sh opened this issue 1 year ago • 3 comments

I can't get style_sheet! macro to work. Step to reproduce:

cargo leptos new --git https://github.com/leptos-rs/start

Create a file src/test.css with the content:

h1 {
    color: red !important;
}

And in HomePage add:

  let class_name = style_sheet!("./src/test.css");
  ...
  view! { class = class_name,
     ...
  }

The expected result is the text being red, but no style is applied no matter what.

If you can not reproduce, I can make a Dockerfile of it.

tkr-sh avatar Nov 22 '23 22:11 tkr-sh