grunt-contrib-connect is a plugin for the Javascript task runner Grunt. The primary use is to start a connect web server.
Questions tagged [grunt-contrib-connect]
107 questions
1
vote
0 answers
grunt serve reloads browser without changes made
I have an Angular JS project and am using grunt to compile and display my page, via grunt serve. However, a lot of times the browser reloads without any changes made. I have been searching for a reason but just can't find any explanation. It is…

BrokenHip Development
- 51
- 1
- 9
1
vote
0 answers
How to get grunt-connect work with livereload
I have this config:
connect: {
develop: {
options: {
livereload: 35729,
hostname: '*',
port: 8000,
open: {
target:…

Yoorek
- 1,003
- 1
- 12
- 30
1
vote
0 answers
grunt-contrib-connect: connect is undefined when using jit-grunt and load-grunt-config
I have the following grunt plugins in my package.json installed:
"grunt-connect-proxy": "^0.2.0",
"grunt-contrib-connect": "^0.11.2",
"grunt-contrib-watch": "^0.6.1",
"jit-grunt": "^0.9.1",
"load-grunt-config": "^0.17.2",
"load-grunt-tasks":…

oliveromahony
- 471
- 4
- 19
1
vote
1 answer
grunt-contrib-connect - undefined is not a function for connect.static
I am trying to configure the grunt connect such a way that
For static pages it serves pages from src directory
web service calls are intercepted by middle-ware and static json is served.
While the web service calls are being mocked correctly the…

NiksP
- 69
- 1
- 9
1
vote
1 answer
Trying to find the regex for pretty URLs
I have a website structure like this:
/docs/one_of_the_resources/one-of-the-resources.html
/docs/a_complete_different_resource/a-complete-different-resource.html
I want to get rid of all sub-folders in the url and get…

Johannes
- 337
- 1
- 4
- 17
1
vote
0 answers
How to obtain the random port of a server spawned by grunt-contrib-connect?
I have the following Gruntfile.js configuration (excerpt):
connect: {
server : {
options: {
port: '?',
hostname: '*',
useAvailablePort: true,
}
}
}
and somewhere…

user2276239
- 36
- 3
1
vote
1 answer
Why the third arguments of middlewares option of grunt-contrib-connect is undefined?
I use middleware option of grunt-contrib-connect to mock static json data,but the middleware function only have 2 arguments,the third argument which should be an array turn outs to be undefined.
my gruntfile piece:
// The actual grunt server…

Aflext
- 309
- 4
- 15
1
vote
1 answer
grunt-contrib-connect - Fatal error: getaddrinfo ENOTFOUND my.website - How to set up custom URL?
I want to use grunt-contrib-connect to create a server under a specific URL, let's say http://my.website/. According to the documentation, all I need to do is just to change the hostname option, but I keep getting an error saying: Fatal error:…

goodpixels
- 503
- 1
- 5
- 20
1
vote
0 answers
Grunt Watch and Connect is not working together
I am trying to register a custom task that combines the connect and watch task on grunt, but it seems like it is just running the first element(task) of the array on the function grunt.registerTask. In this situation, it is just running the watch…

cengo
- 151
- 1
- 6
1
vote
0 answers
How do you use the NetBeans debugger with grunt-contrib-connect?
I have a project generated from the Yeoman Angular generator. In WebStorm I setup the project to run 'grunt serve' before debugging and everything just works. When I try this in NetBeans the code doesn't stop at the break points. Is it possible to…

mykbaker
- 93
- 2
- 6
1
vote
2 answers
Get data from grunt-contrib-connect request object
So this is probably a very simple question, but I've been Googling around for over an hour and haven't been able to find anything. I also just tried printing out the request object, and I don't see anything useful.
How do I get the data or body of a…

static416
- 1,759
- 1
- 11
- 22
1
vote
1 answer
Open task in grunt-contrib-connect specifying the browser mode and document mode in appName parameter
I am using nodeJS to automate my javascript web app developement, and I always has to ensure the app works fine in all browsers including IE >=8 , now I have IE10 installed on my laptopn ,and I am using grunt-contrib-connect package to open the app…

Deepika Guliani
- 64
- 1
- 12
1
vote
1 answer
grunt-contrib-connect and access denied page
I'm a using grunt-contrib-connect (^0.8.x in package.json) for my angularJs project.
when I start the task grunt connect my shell says :
Running "connect:server" (connect) task
Waiting forever...
Started connect web server on http://0.0.0.0:8000
My…

clementSabattie
- 13
- 4
1
vote
2 answers
grunt-connect not working when host is 0.0.0.0
I'm trying to externally access my local node.js development server that's created using the grunt-contrib-connect plugin. The server works (locally) when I use localhost or 127.0.0.1 as the hostname parameter. However, when I change the parameter…

Nathan Friend
- 12,155
- 10
- 75
- 125
1
vote
1 answer
Grunt Connect requires .html extension
I have been building a site with Grunt and grunt-contrib-connect.
I would like to have my site urls not require file extensions (i.e. 'foo' not 'foo.html')
From what I can gather gunt-contrib-connect does not pay attention to htaccess files so I…

whmii
- 430
- 2
- 10