Skip to content

Instantly share code, notes, and snippets.

@amitu
Created July 27, 2015 09:48
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 amitu/022152d9bb0a5ee2b727 to your computer and use it in GitHub Desktop.
Save amitu/022152d9bb0a5ee2b727 to your computer and use it in GitHub Desktop.
reload browser on sass change
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
tell application "Google Chrome"
reload active tab of window 1
end tell
@amitu
Copy link
Author

amitu commented Sep 28, 2015

There is also a cross platform browser reloader: http://entrproject.org/scripts/reload-browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment