Answer the question
In order to leave comments, you need to log in
How to run PHP in browser-sync (gulp)?
For building I use gulp and the browser-sync module. The work required executing PHP scripts. How can PHP scripts be processed? browser-sync creates a local server, but accordingly without PHP. Installed OpenServer. How to make PHP scripts run on local browser-sync server?
Answer the question
In order to leave comments, you need to log in
gulp.task('browser-sync', function() {
browserSync.init({
proxy: "yourlocal.dev"
});
});
Found another cool video - https://www.youtube.com/watch?v=wE-Oi84UJXE
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question