abishekatp / stylers

Fully compile time scoped CSS for Leptos components
MIT License
139 stars 13 forks source link

style_sheet! not working (File not found) #31

Open Stay1444 opened 1 year ago

Stay1444 commented 1 year ago

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

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

abishekatp commented 1 year ago

Can you please push some sample code on git and share it here?