BrowserSync with yarn?


  • | 97 points

    mix.js('resources/assets/js/app.js', 'public/js')
    .sass('resources/assets/sass/app.scss', 'public/css')
    .browserSync('testing.dev');

    I am using yarn and though it would update the browser, I switched to npm but it does not update testing.dev it opens localhost:3000 instead and updates that, is it possible with yarn or npm to update the website but use nice url laragon autocreates?


  • administrators
    | 47916 points

    @nermamax : As the ports are different, it is not possible with yarn or npm.

    You can use testing.dev:3000 but I see no benefit.

    If you prefer to use testing.dev, you can use a proxy to foward packets to localhost: 3000 but it requires extra efforts.


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.