Created
July 27, 2015 09:48
-
-
Save amitu/022152d9bb0a5ee2b727 to your computer and use it in GitHub Desktop.
reload browser on sass change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
sassc -I foundation/scss scss/main.scss > css/main.css | |
osascript reload-chrome.applescript | |
watch: | |
make build | |
fswatch -e main.css scss | xargs -n1 make build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Google Chrome" | |
reload active tab of window 1 | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is also a cross platform browser reloader: http://entrproject.org/scripts/reload-browser