Skip to content

Instantly share code, notes, and snippets.

@jbalzar
Created August 24, 2015 08:33
Show Gist options
  • Save jbalzar/bceba894ca052cc7f3c2 to your computer and use it in GitHub Desktop.
Save jbalzar/bceba894ca052cc7f3c2 to your computer and use it in GitHub Desktop.
BrowserSync for Laravel Elixir
/**
* gulp.js file
*
* Github Repo
* https://github.com/ponko2/laravel-elixir-browser-sync
*
* Node Install
*
* Laravel Elixir 2.x
* npm install [email protected] --save-dev
*
* Laravel Elixir 3.x
* npm install laravel-elixir-browser-sync@beta --save-dev
*
*/
var elixir = require('laravel-elixir');
require('laravel-elixir-browser-sync');
elixir( funciton(mix) ) {
mix.browserSync([
'app/**/*',
'public/**/*',
'resources/views/**/*'
], {
proxy: 'url.app',
reloadDelay: 2000
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment