stylers icon indicating copy to clipboard operation
stylers copied to clipboard

style_sheet! not working (File not found)

Open Stay1444 opened this issue 1 year ago • 1 comments

I'm trying to use the style_sheet! macro but it always complains saying that the file does not exist.

This is my project structure (the relevant parts)

< - root - >

  • src
    • layouts
      • main_layout.rs
      • main_layout.css

I'm trying to import main_layout.css from main_layout.rs

I tried placing the css file in src, and in the root directory. Always complains. I tried with the following paths

main_layout.css
./main_layout.css

src/layouts/main_layout.css
./src/layouts/main_layout.css

layouts/main_layout.css
./layouts/main_layout.css

It does not work at all

Stay1444 avatar Jul 05 '23 13:07 Stay1444