I've just installed Laravel 5.3, it's a completely fresh install and after looking through the Docs i've set up my Gulpfile as follows:

elixir((mix) => {
    mix.sass('app.scss')
       .webpack('app.js')
       .version(['css/app.css', 'js/app.js'])
       .browserSync({
         proxy: 'subdomain.mydomain.dev'
       });
});

For some reason every single time i run gulp watch it launches the browser towards localhost:3000

What am i doing wrong? Isn't this supposed to direct the BrowserSync to my Mamp Vhost if i set the address exactly the same?

share|improve this question

This question has an open bounty worth +50 reputation from Gerard Reches ending in 2 days.

This question has not received enough attention.

Bounty for an answer that works with Laravel Elixir (Laravel 5.3) and specially in laravel-mix (Laravel 5.4)

    
It seems to have something to do with the .dev TLD... i still don't get why it's not working, i have to give up my dev tld to make BrowserSync work in Elixir? Seriously? :\ – JonnySerra Nov 25 '16 at 22:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.