I would like to configure Intellij IDEA to run 'on click' npm Angular 2 conf with proxy as argument. I can do it via terminal by command ng serve --proxy-config proxy.conf.json
but more easily would by configuration done via Intellij. When I paste my argument in input, I get only ng serve "proxy.conf.json
. What is wrong with this?
Ok, so one of the solutions is to add new script to package.json under scripts
like "local-run-with-proxy": "ng serve --proxy-config proxy.conf.json". Then create NPM configuration with a paramater scripts
as local-run-with-proxy.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.