【发布时间】:2015-03-15 12:20:27
【问题描述】:
我有一个需要更改一些网址的应用程序。例如localhost:9000 应该看起来像localhost:9000/myapp
所有的静态文件都会有 html 中的 url,例如 myapp/style/main.css。但实际上myapp 文件夹将不存在,我只需要在 url 中显示它。我不知道如何在内部重写它。
服务器是"grunt-contrib-connect"
【问题讨论】:
标签: javascript url-rewriting gruntjs grunt-contrib-connect