【发布时间】:2014-02-28 23:02:43
【问题描述】:
我使用 grunt-contrib-connect 作为文件服务器。 现在我想将文件请求从 /some/file/path/with/filename-dbg.js 重写为 /some/file/path/with/filename.js 仅当 /some/file/path/with/filename-dbg 时。 js不存在。
我的第一个想法是使用 grunt-connect-rewrite,但它不支持 apache modrewrite 模块中使用的 -f 或 -d 标志。
第二个想法是在 grunt-contrib-connect 的中间件配置中添加一个功能。
有什么想法可以实现吗?
最好的问候,康斯坦丁
【问题讨论】:
标签: node.js rewrite gruntjs connect grunt-contrib-connect