Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve relative sass_root paths earlier #65

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wryk
Copy link
Contributor

@wryk wryk commented Mar 11, 2024

Revert SassCssCompiler before #64. Supports relative paths by resolving/prefixing them at extension loading. I don't know if it should be implemented this way (it feels hacky?) but I don't see how it could be better.

What do you think of this change @smnandre ?

Tests are missing because I don't know enough how asset-mapper works to design an integration test for an AssetCompiler. Testing the builder instead would be even more work for me because my dev env doesn't supports the default sass binary from the bundle.

I'll not have more time in the next weeks to work on it, feel free to modify this PR as much as you want.

@wryk wryk force-pushed the fix/resolve-relative-sass-path-earlier branch from 59d2803 to f82915f Compare March 11, 2024 21:26
@wryk wryk force-pushed the fix/resolve-relative-sass-path-earlier branch from f82915f to 2684cf3 Compare March 11, 2024 21:29
@smnandre
Copy link
Contributor

I'll look later this week, no immediate feedback except: i'd still start with a ".sass" check :)

@wryk
Copy link
Contributor Author

wryk commented Mar 13, 2024

Yeah sorry, I ignored this part on purpose and I took the conservative choice to only rollback SassCssCompiler.
I don't understand the reasoning of the current supports implementation (comparison of two realpaths) but someone might wrote it for a good reason. Because of the missing or broken tests (in my env) I'd rather not prematurely update code not required for relative path support.

@smnandre
Copy link
Contributor

I mande a PR on your PR with small change suggestions :)

wryk#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants