var gulp = require("gulp");
var server = require("browser-sync").create();
var php = require('gulp-connect-php');
var pathResources = "frontend/resources/";
var outResources = "frontend/web/";
gulp.task('php', function() {
php.server({ base: outResources, port: 8010, keepalive: true});
});
gulp.task('server',['php'], function () { // Создаем таск browser-sync
server.init({
proxy: '127.0.0.1:8010',
port: 8080,
open: true,
notify: false
});
});
gulp.task("start", gulp.series("server"));