Skip to content

Instantly share code, notes, and snippets.

@avataru
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avataru/d93f4e548c5be3362c23 to your computer and use it in GitHub Desktop.
Save avataru/d93f4e548c5be3362c23 to your computer and use it in GitHub Desktop.
SASS watcher
@ECHO OFF
CHOICE /C:NXCO /N /T:5 /D:C /M:"Output [N]ested, E[x]panded, [C]ompact or C[o]mpressed?"
SET ZONE=%ERRORLEVEL%
CLS
IF %ZONE% EQU 1 GOTO :Nested
IF %ZONE% EQU 2 GOTO :Expanded
IF %ZONE% EQU 3 GOTO :Compact
IF %ZONE% EQU 4 GOTO :Compressed
:Nested
SET OUTPUT=nested
GOTO :Watch
:Expanded
SET OUTPUT=expanded
GOTO :Watch
:Compact
SET OUTPUT=compact
GOTO :Watch
:Compressed
SET OUTPUT=compressed
GOTO :Watch
:Watch
ECHO The compiled stylesheet will be %OUTPUT%
ECHO.
sass --watch ../resources/assets/sass:../public/styles --style %OUTPUT%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment