laravel-mix-browser-sync-multi
v0.1.0
Published
Run multiple BrowserSync instance in your Laravel Mix.
Downloads
1
Maintainers
Readme
Laravel Mix BrowserSync Multi
This extension gives a capability to run multiple BrowserSync instance in your Mix.
Usage
First, install the extension.
yarn add laravel-mix-browser-sync-multi --dev
Then, require it within your webpack.mix.js
file, like so:
let mix = require('laravel-mix');
require('laravel-mix-browser-sync-multi');
mix
.js('resources/js/app.js', 'public/js')
.less('resources/less/app.less', 'public/css')
.browserSyncMulti([
'first-site.test',
'second-site.test'
])
And you're done! Compile everything down with yarn run watch
.