Skip to content

Instantly share code, notes, and snippets.

@cre-o
Last active June 22, 2017 18:12
Show Gist options
  • Save cre-o/a8203603085cea966215fbadaa368d6c to your computer and use it in GitHub Desktop.
Save cre-o/a8203603085cea966215fbadaa368d6c to your computer and use it in GitHub Desktop.
WordPress css auto reload
// Use the following magic: https://www.browsersync.io/
npm install -g browser-sync
// Run your backend webserver such as apache or nginx
// Let say it runs on port 8080
// Now we can connect on in it with proxy option
browser-sync start --proxy "localhost:3000" --files "wp-content/themes/**/*.css"
// That's all folks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment