Thanks a lot for making this. Currently page only refresh on JavaScript changes. Can we get a feature that refreshes page for css, php, blade file changes as like BrowserSync does. Thanks
Are you using Mix in a Laravel project, or something unrelated? If unrelated, you'll need to specify which file paths should be watched.
// https://browsersync.io/docs/options/
mix.browserSync({
proxy: 'my-domain.dev',
files: ['paths/here/**/*.php']
})
Otherwise, for Laravel projects, it should automatically watch all relevant directories.
Could this be added to the documentation? I just stumbled into this issue myself.
Thanks @JeffreyWay that helped me out greatly! I have been banging my head against a wall until i found that.
Most helpful comment
Are you using Mix in a Laravel project, or something unrelated? If unrelated, you'll need to specify which file paths should be watched.
Otherwise, for Laravel projects, it should automatically watch all relevant directories.