将 DartEditor 项目导出到 Webstorm
Export a DartEditor project to Webstorm
因为根据 不再支持 DartEditor 我尝试在 Webstorm 试用版中打开该项目。但它不像以前在 DartEditor 中那样工作......我不确定我的问题是什么,我知道这很糟糕。对不起。
例如,它没有从 font awesome 中找到我的图标并提供以下错误:
GET http://localhost:63342/styles/font-awesome-4.3.0/css/font-awesome.min.css 404 (Not Found)
这导致 font-awesome 的图标不显示,但预设的汉堡包工作 - 这也发生在 DartEditor 中的 JS 构建版本中,但对于 webstorm,当我 运行 它在铬。
另外,当我 运行 使用 webstorm 时,它无法与本地服务器通信,而在 DartEditor 中可以。
这么多...很多问题,原因可能相同也可能不同。因此,我想知道您能否提供一个示例,说明如何将 Dart 项目从 DartEditor 正确传输到 Webstorm。
编辑:无法访问服务器是因为我有
header('Access-Control-Allow-Origin: http://localhost:8080');
在我的 php 文件中。很抱歉打扰你。
我的其他问题与IDE没有太大关系所以...我应该删除这个还是你认为其他人会犯同样的错误并需要我的问题?
有两个问题:
1.无法连接到服务器是因为我有
header('Access-Control-Allow-Origin: http://localhost:8080');
在我的 php 个文件中。
- 在 DartEditor 中,以下内容有效
<link rel="stylesheet" href="/styles/font-awesome-4.3.0/css/font-awesome.min.css">
但在其他 IDE 中,我必须跳过第一个斜杠
<link rel="stylesheet" href="styles/font-awesome-4.3.0/css/font-awesome.min.css">
因为根据
例如,它没有从 font awesome 中找到我的图标并提供以下错误:
GET http://localhost:63342/styles/font-awesome-4.3.0/css/font-awesome.min.css 404 (Not Found)
这导致 font-awesome 的图标不显示,但预设的汉堡包工作 - 这也发生在 DartEditor 中的 JS 构建版本中,但对于 webstorm,当我 运行 它在铬。 另外,当我 运行 使用 webstorm 时,它无法与本地服务器通信,而在 DartEditor 中可以。
这么多...很多问题,原因可能相同也可能不同。因此,我想知道您能否提供一个示例,说明如何将 Dart 项目从 DartEditor 正确传输到 Webstorm。
编辑:无法访问服务器是因为我有
header('Access-Control-Allow-Origin: http://localhost:8080');
在我的 php 文件中。很抱歉打扰你。 我的其他问题与IDE没有太大关系所以...我应该删除这个还是你认为其他人会犯同样的错误并需要我的问题?
有两个问题: 1.无法连接到服务器是因为我有
header('Access-Control-Allow-Origin: http://localhost:8080');
在我的 php 个文件中。
- 在 DartEditor 中,以下内容有效
<link rel="stylesheet" href="/styles/font-awesome-4.3.0/css/font-awesome.min.css">
但在其他 IDE 中,我必须跳过第一个斜杠
<link rel="stylesheet" href="styles/font-awesome-4.3.0/css/font-awesome.min.css">