I stopped using browser synchs because of this. Would love to hear a solution. :) Haven't had the time to really dig into this issue.
BrowserSync not refreshing
For some reason I can't get BrowserSync to refresh when I update my files.
Upon running gulp watch the connection gets initialised so BrowserSync is installed and working.
However it doesn't seem to pick up on any changes.
Here's my gulp file:
var gulp = require("gulp");
var shell = require('gulp-shell');
var elixir = require('laravel-elixir');
var themeInfo = require('./theme.json');
var task = elixir.Task;
elixir.extend("stylistPublish", function() {
new task("stylistPublish", function() {
return gulp.src("").pipe(shell("php ../../artisan stylist:publish " + themeInfo.name));
}).watch("**/*.scss");
});
elixir(function (mix) {
mix.sass([
"app.scss"
], "assets/css/app.css")
.stylistPublish()
.browserSync({
proxy: 'testing.dev'
});
});
edit:
Probably worth mentioning, I'm running Elixir not in the default directory of Laravel but a custom theme folder, however I use the following elixir.json file:
{
"srcDir": "Themes/MyTheme",
"assetsDir": "resources/",
"cssOutput": "assets/css/",
"jsOutput": "assets/js/",
"bowerDir": "resources/vendor/"
}
```