Created
August 24, 2015 08:33
-
-
Save jbalzar/bceba894ca052cc7f3c2 to your computer and use it in GitHub Desktop.
BrowserSync for Laravel Elixir
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
/** | |
* 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