gruntjs / grunt-contrib-connect

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

'base' Option Does Not Accept Object Type #148

Open Skinner927 opened 9 years ago

Skinner927 commented 9 years ago

This works:

connect: {
  server: {
    options: {
      port: 8001,
      hostname: '*',
      keepalive: true,
      base: 'web-site'
    }
  }
}

This fails:

connect: {
  server: {
    options: {
      port: 8001,
      hostname: '*',
      keepalive: true,
      base: {
        path: 'web-site'
      }
    }
  }
}

The error is: Warning: Arguments to path.resolve must be strings Use --force to continue.

Am I using this wrong?