Is it possible to serve css or js files to XAMPP using connect? I've used Yeoman in the past and I love the way they use connect to serve .tmp and bower components. Here's the yeoman code for reference:
This works fine with HTML websites but unfortunately this particular project I'm working on uses PHP. I've dropped the website folder into the htdocs folder of my XAMPP and I can view PHP pages fine in my browser using this URL http://localhost/myphpwebsite. I've integrated Grunt into this website and I know I can easily make a few changes to my Grunt config to place my css and js in other directories but I want to know if this is possible with connect to serve the compiled files I place in my .tmp directory. I've searched on the net and found a connect version that create a php server and I've also looked into grunt-connect-proxy. But have not had any luck. Sorry if this is a noob question I'm still trying to learn about connect and its uses any help would be greatly appreciated. Here is my folder structure:
Is it possible to serve css or js files to XAMPP using connect? I've used Yeoman in the past and I love the way they use connect to serve .tmp and bower components. Here's the yeoman code for reference:
This works fine with HTML websites but unfortunately this particular project I'm working on uses PHP. I've dropped the website folder into the htdocs folder of my XAMPP and I can view PHP pages fine in my browser using this URL http://localhost/myphpwebsite. I've integrated Grunt into this website and I know I can easily make a few changes to my Grunt config to place my css and js in other directories but I want to know if this is possible with connect to serve the compiled files I place in my .tmp directory. I've searched on the net and found a connect version that create a php server and I've also looked into grunt-connect-proxy. But have not had any luck. Sorry if this is a noob question I'm still trying to learn about connect and its uses any help would be greatly appreciated. Here is my folder structure:
Thanks.