gruntjs / grunt-contrib-connect

Start a static web server.
http://gruntjs.com
MIT License
714 stars 145 forks source link

Allow path aliases like Karma config #196

Open mohsen1 opened 9 years ago

mohsen1 commented 9 years ago

Right now you have to use a middleware to alias a path to a different folder. For example if I want to serve folder /foo at path /bar there is no configuration based solution. It would be nice it we can just use a config for doing this. Something like this:

 coonect: {
    port: 8888,
   alias: {
      '/foo': './bar'
    }
  }
sindresorhus commented 8 years ago

Can you link to docs on how the Karma aliasing works?

mohsen1 commented 8 years ago

At very end of this page: http://karma-runner.github.io/0.13/config/files.html