-
Notifications
You must be signed in to change notification settings - Fork 15
Imports relative to project root #14
Comments
Hi Martin! The resolving of In general if you can resolve the path & test with
I've just been using relative paths |
It seems like it is linked to the current working directory for sassc.exe. |
Forgot to answer this :) Reason I prefer imports relative to root is it makes refactoring easier if files are moved around.
I guess this is the scenario I would expect to work, in that this library compiles in context of the project, and the wwwroot folder is at the root of the project. I'm not familiar with LibSassHost (and limited experience with sass in general), but do you think the |
Actually I was waiting/hoping for any progress on sass-dart progress, before starting work on this: |
Seems that project has been postponed, currently I have limited time, otherwise I might check the current state of that commit. |
See pull request #30 |
Hey, just started using this in a Blazor webassembly app. Working great, but when I want to import a another file for variables it doesn't work out too well. I have color variables in a top level folder which will be needed many places, and I would like to import relative to project root. This worked with the Delegate.SassBuilder project (
@import 'wwwroot/variables.scss';
), but since this library seems actively maintained and well designed I have switched to this library. Is there a way to do imports relative to project root currently? I.e.@import 'wwwroot/variables.scss';
@import '/wwwroot/variables.scss';
@import '~/wwwroot/variables.scss';
The text was updated successfully, but these errors were encountered: