gruntjs bom 乱码 html iis,gruntjs - How to use jsp and grunt server at the same time - Stack Overflow...

Here's my current dev setting for my web app.

The entry page is a static html file, say index.html. I don't really want to care about the server end services, so what I'm doing now is to start a local grunt http server to load all my local javascript files and other resources, and use grunt proxy to redirect all client REST requests to a real server to get data. This makes it very easy because I don't really need to setup the server environment and I can actually use any existing server as long as it provides those REST apis that the client needs.

However, one day, I figured I need server to tell me some information at the first response. So, what I can think of is changing the index.html to index.jsp. I really don't want to do another request to server after the index.html and its javascript files are downloaded because of performance concern. So, how can I still use grunt server as I used to do?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值