laravel-elixir-serve-5.2
v0.1.3
Published
Run PHP built-in web server
Downloads
3
Readme
laravel-elixir-serve
Uses the built-in server in PHP 5.4.0+.
Install
$ 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 start it with browser-sync and custom port:
var elixir = require('laravel-elixir');
require('laravel-elixir-serve');
require('laravel-elixir-browser-sync');
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.