All Projects → JeffreyWay → laravel-elixir-browsersync-official

JeffreyWay / laravel-elixir-browsersync-official

Licence: other
Laravel Elixir Browsersync Integration

Programming Languages

javascript
184084 projects - #8 most used programming language

Laravel Elixir Browsersync Support

This extension brings Browsersync support to Laravel Elixir version 6 and up. Prior to that release, Browsersync was baked in.

Step 1: Install

npm install laravel-elixir-browsersync-official --save-dev

Step 2: Use It

Within your Gulpfile, add:

elixir(function(mix) {
  mix.browserSync();
});

Once you run gulp watch, access your web application using port 3000 to enable browser syncing: http://homestead.app:3000. If you're using a domain other than homestead.app for local development (likely), you may pass an array of options as the first argument to the browserSync method:

elixir(function(mix) {
  mix.browserSync({
    proxy: 'project.app'
  });
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].