我无法使用grunt connect来使用我在选项中指定的端口。 在我的grunt文件中是以下配置
connect: {
options: {
port: 9000,
hostname: '0.0.0.0'
},
test: {
options: {
port: 9001,
open: true,
base: 'test'
}
}
}
然而,当我运行grunt connect:test
时,控制台引发返回以下
在端口1337上打开/ home / peter / Projects / HammerHead2的服务器。
答案 0 :(得分:7)
简单的解决方案
我安装了grunt-connect NOT grunt-contrib-connect