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
2
votes
1 answer
Grunt connect with base html tag
I am developing an angularjs site for someone and the site they are going to put it on is something like this
http://domain.com/newsite
So to get my links to work I added the following in the head tags to get the links to work in production

jrock2004
- 3,229
- 5
- 40
- 73
2
votes
1 answer
forwarding grunt connect to different url
I'm using grunt connect with livereload for my dev environment.
I want to be able to call the production api which is under /server.
To do that I need to direct any calls from…

gilamran
- 7,090
- 4
- 31
- 50
2
votes
1 answer
How do I configure grunt-connect-proxy behind a firewall?
I am trying to setup grunt-contrib-connect to supply a proxy for my XHR calls. I found grunt-connect-proxy which seems to be what I want. But I am behind a corporate firewall that does not allow the requests from node to pass through.
The error I…

mflodin
- 1,093
- 1
- 12
- 22
2
votes
1 answer
grunt-contrib-connect server can't connect t localhost
My Gruntfile:
...
connect: {
server: {
options: {
port: 8000,
hostname: 'localhost',
base: '.'
}
}
}
...
Then, when I run grunt connect, I see this:
❯ grunt connect
Running "connect:server" (connect) task
Started…

dylanjha
- 2,303
- 4
- 28
- 47
1
vote
0 answers
grunt-contrib-connect/grunt-contrib-watch livereload: Refused to apply style from [path] because its MIME type
I'm using grunt-contrib-connect and grunt-contrib-watch for the live reload feature, like so:
watch: {
options: {
livereload: true,
},
files: ['src/**/*'],
tasks: ['dev']
},
connect: {
server: {
options: {
port: 8000,
…

BBaysinger
- 6,614
- 13
- 63
- 132
1
vote
1 answer
Removing the hash from the url in AngularJS 1.x
I'm building a web app with Angular 1.x(not using ionic, building a website). I would like to remove the '#' from the URLs. I did implement html5mode true and put a base tag in the head tag in index.html. It works fine until I refresh the pages.…

Cenk Yurtbilir
- 63
- 2
- 6
1
vote
1 answer
Trouble running Qunit tests with static server using grunt
Running the tests via a web browser works fine, but using grunt gives me errors. I struggle to understand what I'm doing wrong here. grunt tests fails with
$ grunt tests
Running "jsonlint:sample" (jsonlint) task
>> 4 files lint free.
Running…

MdaG
- 2,680
- 2
- 34
- 46
1
vote
1 answer
I Need enable livereload in my coverage test report
I've been trying enable livereload for my coverage report.
My tool for generate this report is karma-coverage and I generate this report in the following folder: test/coverage/html-report
-test
|
|-- coverage
|
|-- report-html
…

Gonzalo Pincheira Arancibia
- 3,483
- 1
- 23
- 42
1
vote
1 answer
Grunt localhost:9000/index.html doesn't run
I've set it up like Grunt says and I have the following code, grunt is watching correctly and the livereload.js is running on port 35729.
My issue is that I can't see my index.html running on the localhost.
What am I missing?
module.exports =…

DDfrontenderLover
- 470
- 1
- 6
- 23
1
vote
1 answer
Set Chrome as default browser using Grunt Connect and Grunt Open
I use Safari as default browser on my OS X but I want use Chrome as default for Grunt connect and watch so i follow the steps i found on this blog. Everything ok if i set 'Google Chrome Canary' or 'Firefox' as 'app' parameter in grunt open options…

Luca Pipolo
- 31
- 1
- 7
1
vote
1 answer
Migrate configuration to use grunt-contrib-connect 11.2 and livereload
I have an older project that was set up about a year ago using a yeoman generator. It has been working fine for livereload but now when I want to upgrade my node dependencies my current configuration does not work anymore. I have tried to find…

P3anuts
- 461
- 1
- 9
- 24
1
vote
1 answer
How to attach to node with VSCode and grunt-contrib-connect
I'm unable to use Visual Studio Code to debug my node application.
My .vscode/launch.json looks like this:
{
"version": "0.2.0",
"configurations": [{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 9001
}]
}
I…

V Maharajh
- 9,013
- 5
- 30
- 31
1
vote
2 answers
Grunt Request header field Authorization is not allowed by Access-Control-Allow-Headers
I am trying to implement photo upload to Cloudinary in my Angular web application and I've basically lifted most of the relevant code from the sample app found here:…

cassiusclay
- 376
- 1
- 5
- 19
1
vote
1 answer
What is the purpose on the middleware Yeoman function implementation?
I'm new in grunt-contrib-connect and came across with this follow middleware function Yoeman implementation -
middleware: function(connect, options, middlewares) {
return [
proxySnippet,
connect.static('.tmp'),
…

URL87
- 10,667
- 35
- 107
- 174
1
vote
1 answer
Redirect with grunt-contrib-proxy
I might be doing something wrong but I am unable to force grunt-contrib-proxy to do a simple redirect.
In my gruntfile.coffeee (yup coffeescript) I have the following server configuration:
connect:
devserver:
options:
…

RobertPorter
- 542
- 6
- 16