/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
$ npm install laravel-elixir-browser-sync --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
  });
});
$ homestead up
$ gulp watch