Skip to content

grantholle/laravel-elixir-browser-sync-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

laravel-elixir-browser-sync-simple

Because laravel-elixir-browser-sync was already taken.

Installation

Elixir 2

Use version 1:

npm i laravel-elixir-browser-sync-simple@1 --save-dev

Elixir 3

npm i laravel-elixir-browser-sync-simple --save-dev

This is a simple implementation of Browsersync using Laravel Elixir. Browsersync already has a very powerful API, which only needs a little love to get working with Elixir. Simply pass in an object of options (or nothing at all to use sensible defaults while proxying homestead) and enjoy the bliss of never having to press + R again, in addition to all the other amazing features packed into Browsersync.

👍

Usage

Slap this in gulpfile.js, along with your other Elixir necessities:

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

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

elixir(function(mix) {
  mix.sass('app.sass')
    .browserSync({
      proxy: 'local.dev',
      ...
    });
});

Then run $ gulp watch to watch assets and reload the browser.

This automatically watches your compiled css directory, js directory, app directories as defined in your elixir.json or Config.js, and resources/views directories for changes. If you wish to change these, pass in a files object.

About

A simple implementation of Browsersync into Elixir leveraging the power and simplicity of Browsersync's API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published