Skip to content

.gitignore takes priority over watch-additional-files option in watch command #532

Open
@AkinAguda

Description

@AkinAguda

I want to watch a file is in my .gitignore and adding it to the watch-additional-files array in my Cargo.toml does not seem to work

My use case:
I am combining stylance with tailwind. And my style folder looks like this:
Image

When stylance compiles all my modular css and puts it in the compiled.scss file, I want cargo-leptos to watch that file for changes. I also need it to be in my gitignore since its compiled CSS and what really should be pushed are the source modular CSS.

These are my configurations:

Image Image

cargo-leptos only watches then I remove this line from my gitignore

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions