connorskees / grass

A Sass compiler written purely in Rust
https://docs.rs/grass/
MIT License
499 stars 38 forks source link

Fix & complete `find_imports` for AST visitor #103

Open zdivelbiss opened 1 week ago

zdivelbiss commented 1 week ago

Replaces the existing implementation of fn find_imports() -> Option<PathBuf> to a finished implementation that follows the Sass specifications, as well as fixing loading for stylesheets that are compiled directly, rather than loaded from the filesystem (i.e. via grass::from_string rather than grass::from_file).

This should also resolve #88.

zdivelbiss commented 5 days ago

@connorskees any way I can get some feedback on this PR, and potentially get it merged?