Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

anheru88/laravel-elixir-browser-sync2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Elixir BrowserSync2

Version

Install

If you use Laravel Elixir Version Below "^3.0.0". Follow this link

If you use Laravel Elixir Version "^3.0.0".

$ npm install laravel-elixir-browsersync2 --save-dev

Usage

This is a simple wrapper around Laravel Elixir. Add it to your Elixir-enhanced Gulpfile. You need using Homestead, and configure your virtual machine and the domain homestead.app, like so:

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

elixir(function(mix) {
	BrowserSync.init();
	mix.BrowserSync();
});

The second use is passing options to BrowserSync, acording the documentation of BrowserSync.io, like the next example:

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

elixir(function(mix) {
	BrowserSync.init();
	mix.BrowserSync(
	{
		proxy 			: "domain.app",
        logPrefix		: "Laravel Eixir BrowserSync",
        logConnections	: false,
        reloadOnRestart : false,
        notify 			: false
	});
});

About

Elixir Wrapper Around Browsersync For Elixir Version 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published