我已经按照以下方式设置了Grunt Connect:
connect: {
options: {
port: 9000,
livereload: 35729,
hostname: 'localhost'
},
livereload: {
options: {
open: true,
base: [
'app'
]
}
}
}
很好,它以这种方式加载我的index.html页面:
http://localhost:9000
然而,为了与生产环境中的加载方式保持一致,我希望它能够加载附加的上下文路径,例如:
http://localhost:9000/myappcontext/secured
使用grunt-contrib-connect可以简单地完成这个任务吗?还是我需要添加其他代理/中间件?
有没有人能给出这种设置的简单示例?