Angular 2代理的NPM Intellij IDEA配置

问题描述 投票:0回答:1

我想配置Intellij IDEA来运行'on click'npm Angular 2 conf with proxy作为参数。我可以通过命令ng serve --proxy-config proxy.conf.json通过终端来完成,但更容易通过Intellij进行配置。当我在输入中粘贴我的参数时,我只得到ng serve "proxy.conf.json。这有什么问题?

My current configuration

angular intellij-idea npm proxy
1个回答
0
投票

好的,所以其中一个解决方案是在scripts下添加新脚本到package.json,例如“local-run-with-proxy”:“ng serve --proxy-config proxy.conf.json”。然后使用参数scripts创建NPM配置作为本地运行代理。

© www.soinside.com 2019 - 2024. All rights reserved.