I have connect
configuration for - grunt-contrib-connect
connect: {
options: {
...
},
proxies: [{...
}],
livereload: {
options: {
base: gruntTargetPath,
open: true,
middleware: function(connect, options, middlewares) {
return [
...,
connect.static('.tmp'),
connect().use('/bower_components', connect.static('./bower_components')),
connect.static(config.app)
];
}
}
}
}
When I execute on bash - grunt connect:livereload
, it prompts -
Warning: undefined is not a function Use --force to continue.
Aborted due to warnings.
(it's regarding to the connect
argument , I checked it) .
How to pass this argument correctly ?