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
0
votes
1 answer
How to start express server in grunt?
I generated my angular 1.0 app with Yeoman. The gruntfile does not contain a express server config:
connect: {
options: {
port: 9000,
// Change this to '0.0.0.0' to access the server from outside.
hostname:…

bier hier
- 20,970
- 42
- 97
- 166
0
votes
1 answer
How to setup livereload in mean stack application using grunt?
Is it possible to set up grunt task which would run the node.js server (nodemon) and enable livereload on other files (html, js, css, assets)?
I know of several options with grunt-contrib-connect or with grunt-express but none of them works with…

mark
- 354
- 2
- 5
- 15
0
votes
1 answer
Grunt Connect Server CSS files are blank
I am using a Grunt connect web server to serve JS and CSS files locally.
Grunt-contrib-connect: https://github.com/gruntjs/grunt-contrib-connect
The Grunt task looks like the following:
connect: {
server: {
options: {
port:…

Carlton
- 838
- 6
- 16
0
votes
0 answers
How do I create multiple Angular Apps within a single application and move between them with grunt-contrib-connect?
I want to create multiple apps within one app that will be hosted on the same server.
I am using the following link as a guide but I am unsure how to implement some of it:
Muliple spas
I have the app setup as follows:
src/
bower_components
…

AngularBoy
- 1,715
- 2
- 25
- 35
0
votes
1 answer
Supporting POST in grunt-serve using connect-rest?
I'm trying to use grunt serve with the connect-rest middleware. I tried to configure connect-rest in my Gruntfile.js which worked for GET requests, but not for POST. I wonder what I'm missing out. This is my Gruntfile.js (excerpt):
module.exports =…

stwissel
- 20,110
- 6
- 54
- 101
0
votes
1 answer
connect argument is undefined under middleware function
I have connect configuration for - grunt-contrib-connect
connect: {
options: {
...
},
proxies: [{...
}],
livereload: {
options: {
base: gruntTargetPath,
open: true,
…

URL87
- 10,667
- 35
- 107
- 174
0
votes
1 answer
How to access locale json files with grunt http server (grunt-contrib-connect)
I am trying access resolve a locale json file with AngularJS and $resource.
This is my call to load the file:
angular.module('moneyJinnApp').service('TranslationService', function($resource) {
this.getTranslation = function($scope, language) {
…

Dennis G.
- 73
- 1
- 1
- 10
0
votes
2 answers
how to get livereload working with grunt?
I am getting my head around grunt and trying to run my site through grunt and connect.
I have a gruntfile like this:
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg:…

Leeuwtje
- 2,161
- 5
- 21
- 28
0
votes
1 answer
Using Grunt uglify task to mangle JS code
I'm attempting to use the Grunt uglify task to mangle my javascript code, and while I can make minify work, I can't figure out how to pass the 'mangle' option. My Gruntfile contains:
uglify: {
dist: {
mangle: true,
files: {
'<%=…

hugh
- 2,237
- 1
- 12
- 25
0
votes
1 answer
grunt-contrib-connect | root path must be a string Use
While running Grunt task, getting following error.
Running "connect:client" (connect) task
Warning: root path must be a string Use --force to continue.
TypeError: root path must be a string
at Function.serveStatic…

Mohammad Arif
- 6,987
- 4
- 40
- 42
0
votes
0 answers
my web page encoding is gbk,But grunt-contrib-connect output encoding is utf-8:
my web page encoding is gbk,But grunt-contrib-connect output encoding is utf-8:
Connection:keep-alive
content-length:3457
Content-Type:text/html; charset=UTF-8
so, my page becomes garbled. I know there may be is connect npm's problem,but I do not…

Zk Liao
- 117
- 1
- 1
- 6
0
votes
1 answer
grunt connect showing the list of files & directories instead of the website itself
I installed grunt-contrib-connect and configured my Gruntfile.js so as to keep my frontend alive even after I close the terminal. However, its showing me the list of files and directories instead of the actual website.
Here is my Gruntfile.js:
//…

Rahul Desai
- 15,242
- 19
- 83
- 138
0
votes
1 answer
grunt-contrib-connect and file uploading
I have simple grunt-contrib-connect server. It exists jut for local use, just for local access.
I'd like to have ability to choose files from my file system and put them in a directory in my grunt project.
Here's my HTML:
0
votes
1 answer
Grunt -- renamed root directory on disk, now get no compilation to CSS
I just had a Grunt setup on my Win8 machine running a ['sass', 'autoprefixer', 'connect', 'watch'] task to live refresh and design in browser with no issues. The processes were watching my folders for change, compiling from SCSS to CSS, refreshing…

vongoh
- 1
- 2
0
votes
1 answer
node.js 0.12 and grunt-contrib-connect - error calling setHeader()
I am using grunt-contrib-connect for serving my app in development, and after upgrading to node.js 0.12 I started getting errors when trying to browse my app:
Error: "name" and "value" are required for setHeader().
at…

nagohs
- 57
- 1
- 4