You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use http-server to develop multiple projects on my local machine. I want each project to be launched from a different port - so that I can use Chrome DevTools' Workspaces for editing with no problems (DevTools does "per hostname" binding between remote files and local files).
Currently http-server does not allow to load configuration options from a file so I need to manually provide and remember each port for each of my projects.
My proposition is to have a .httpserverrc file (like .bowerrc or .jshintrc) which will allow to store the configuration in a JSON format.
Good point, thanks! I don't know how is it possible that I haven't thought about this!
The only potential problem I see with this solution is that bash scripts are not cross-platform. But if you care about it, you could just use something like grunt to start your dev server.
I use http-server to develop multiple projects on my local machine. I want each project to be launched from a different port - so that I can use Chrome DevTools' Workspaces for editing with no problems (DevTools does "per hostname" binding between remote files and local files).
Currently http-server does not allow to load configuration options from a file so I need to manually provide and remember each port for each of my projects.
My proposition is to have a .httpserverrc file (like .bowerrc or .jshintrc) which will allow to store the configuration in a JSON format.
Related issue: #24
The text was updated successfully, but these errors were encountered: