I'm new to Gulp so please be kind. In my gulpfile.js I'm using this configuration for BrowserSync and gulp-connect-php server:
phpConnect.server({}, function (){
browserSync.init({
server:{
proxy: "localhost:3000",
baseDir:"./build/",
index: "index.php",
//directory: true
}
});
});
Every time I start my tasks with gulp dev
, which is my default task, everything works except that when I open the browser to localhost:3000 a download is prompted for
application/x-httpd-php (2,5 kB)
I've tried to read the other answers here on Stackoverflow and on Github. I've no idea what to do to fix this. I'm working on a MacBookAir 2017, Catalina updated regularly. I'm using Homebrew for Apache, Firefox and php7.
EDIT
After the first answer I think the problem is actually with mime.types. I've added them to my configuration file but still no luck.