5 proxy intellij-idea npm angular
我想将 Intellij IDEA 配置为以代理作为参数运行“单击”npm Angular 2 conf。我可以通过终端通过命令来完成此操作ng serve --proxy-config proxy.conf.json,但通过 Intellij 完成配置更容易。当我将参数粘贴到输入中时,我只得到ng serve "proxy.conf.json. 这有什么问题吗?
小智 5
好的,解决方案之一是将新脚本添加到 package.json 下,scripts例如“local-run-with-proxy”:“ngserve --proxy-config proxy.conf.json”。然后创建 NPM 配置,参数scripts为 local-run-with-proxy。
| 归档时间: |
|
| 查看次数: |
1286 次 |
| 最近记录: |