Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save srikat/76411bebd4e09d9fe92e to your computer and use it in GitHub Desktop.

Select an option

Save srikat/76411bebd4e09d9fe92e to your computer and use it in GitHub Desktop.
CSS Injection and Auto Refresh using BrowserSync. http://sridharkatakam.com/css-injection-auto-refresh-using-browsersync/
npm install -g browser-sync
browser-sync start --proxy genesis.dev --files "wp-content/themes/genesis-sample/**/*"
browser-sync start --proxy genesis.dev --files "wp-content/themes/genesis-sample/*.css, wp-content/themes/genesis-sample/*.php, wp-content/themes/genesis-sample/js/*.js"
browser-sync start --proxy genesis.dev --files "wp-content/themes/genesis-sample/**/*" --tunnel
browser-sync start --proxy genesis.dev --files "wp-content/themes/genesis-sample/**/*" --tunnel --no-ghost
npm update -g browser-sync
npm list -g browser-sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment