【发布时间】:2019-05-21 05:54:15
【问题描述】:
我尝试在 PhpStorm 中创建简单的 PWA。我有 2 个文件:
- home.html
- manifest.json
文件home.html 包含指向manifest.json 的链接:
<link rel="manifest" href="/manifest.json">
当我使用 PhpStorm 内置 Web 服务器打开 home.html 时,Chrome 控制台中的 manifest.json 出现错误 404:
Failed to load resource: the server responded with a status of 404 (Not Found)
我可以在 PhpStorm 中配置内置 Web 服务器以使用 JSON,或者这是不可能的吗?
【问题讨论】:
标签: json configuration phpstorm built-in-web-server