hey guys,
i have a little batch file on windows that helps me a lot and just wanted to share it to you, it is build on top of the git repository batch script file. With this script you are able to manage to have *.scss symlinks but to copy the compiled *.css files into your repository(normally this is a problem if you only have symlinks in your repository as mercurial doesn’t “see” that the sources have changed")
So its useful in a symlinks repo environment
it also adds the option to choose if sass should compress the css
[code]cd /d %1
CHOICE /C JN /M compress?
if errorlevel 2 goto nocompress
SET option=–style compressed
GOTO decide
:nocompress
SET option=
:decide
IF %1==“YOUR REPO DIR PATH(THE ONE WITH THE SYMLINKS) with normal backslashes” (goto fileee) else (goto normal)
:fileee
SET input=THE PATH OF THE DIR YOUR ORIGINAL FILES !!! Please replace all \ with / on windows
SET output=YOUR REPO DIR PATH(THE ONE WITH THE SYMLINKS)!!! Please replace all \ with / on windows
sass --watch %input%:%output% %option%
pause
:normal
sass --watch .:. %option%
pause
[/code]
i don’t know but maybe it helps someone, because for me it was hard to figure out that sass requires to replace the backslashes with slashes in order that you can define 2 different input/output folders. maybe a windows thing or so… don’t know.
PS: The rest is just like in the GIT repo, just search this thread…ah ok here there is the url: github.com/nathansmith/sublime-text-haml-sass