Skip to content

Commit

Permalink
Create readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Jul 17, 2016
1 parent d465772 commit aff9d72
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions readme.md
@@ -0,0 +1,30 @@
# 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

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

## Step 2: Use It

Within your Gulpfile, add:

```js
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:

```js
elixir(function(mix) {
mix.browserSync({
proxy: 'project.app'
});
});
```

0 comments on commit aff9d72

Please sign in to comment.