我想配置Intellij IDEA来运行'on click'npm Angular 2 conf with proxy作为参数。我可以通过命令ng serve --proxy-config proxy.conf.json
通过终端来完成,但更容易通过Intellij进行配置。当我在输入中粘贴我的参数时,我只得到ng serve "proxy.conf.json
。这有什么问题?
好的,所以其中一个解决方案是在scripts
下添加新脚本到package.json,例如“local-run-with-proxy”:“ng serve --proxy-config proxy.conf.json”。然后使用参数scripts
创建NPM配置作为本地运行代理。