/laravel-elixir-browser-sync

Laravel Elixir BrowserSync Extension

Primary LanguageJavaScript

laravel-elixir-browser-sync

Install

$ composer global require "laravel/homestead=~2.0"
$ homestead init
$ homestead edit

Laravel Elixir 2.x

$ npm install laravel-elixir-browser-sync@0.1.7 --save-dev

Laravel Elixir 3.x

$ npm install laravel-elixir-browser-sync@beta --save-dev

Usage

var elixir = require('laravel-elixir');

require('laravel-elixir-browser-sync');

elixir(function(mix) {
  mix.browserSync([
    'app/**/*',
    'public/**/*',
    'resources/views/**/*'
  ], {
    proxy: 'homestead.app',
    reloadDelay: 2000
  });
});

Laravel Elixir 2.x

$ homestead up
$ gulp watch

Laravel Elixir 3.x

$ homestead up
$ gulp serve watch