laravel-elixir-serve
v0.1.1
Published
Run PHP built-in web server
Downloads
5
Readme
laravel-elixir-serve
Install
Install package:
$ npm install laravel-elixir-serve --save-dev
Usage
Start built-in web server:
var elixir = require('laravel-elixir');
require('laravel-elixir-serve');
elixir(function(mix) {
mix.serve();
});
Or run browser-sync with proxy:
var elixir = require('laravel-elixir');
require('laravel-elixir-serve');
elixir(function(mix) {
var port = 8888;
mix.serve({
port: port
}).browserSync(null, {
proxy: 'localhost:' + port
});
});
Then run:
$ gulp serve
Options
See gulp-connect-php
watch
Type: boolen
Default: true
Call watch
task.