1
I与yeoman搭建一个项目。当我用咕serve为我的项目服务时。 Grunt将为index.html提供服务,但我想为index.php提供服务。Grunt服务index.php而不是index.html
我需要在grunfile中配置什么来实现这个目标?
I与yeoman搭建一个项目。当我用咕serve为我的项目服务时。 Grunt将为index.html提供服务,但我想为index.php提供服务。Grunt服务index.php而不是index.html
我需要在grunfile中配置什么来实现这个目标?
index.php文件中是否有实际的php代码?如果确实如此,那么您需要弄清楚提供页面的不同方式。或者你可以尝试像https://github.com/sindresorhus/grunt-php