Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 gulp 运行本地 PHP 服务器?我正在使用 gulp-connect,但它不会呈现我的 php 文件。我无法用谷歌搜索其他人遇到这个问题,所以我认为我做错了什么?
这是我用于启动本地服务器的 gulp 文件:
gulp.task('webserver', function() { connect.server({ root: '_development', port: 8888 }); });
使用 gulp 插件 gulp-connect-php,就像一个魅力:
https://www.npmjs.com/package/gulp-connect-php