Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在想我想要npm run develop或npm run production能够轻松切换 IP/域名(也许还有其他一些变量)。
npm run develop
npm run production
目前,在为应用程序提供服务时,我经常需要在服务之前在“localhost”上进行替换。
这应该以某种方式在 SystemJS 中完成吗?
至于package.json:
package.json
"start": "concurrent \"npm run tsc:w\" \"npm run lite\" "
如何为 Angular 2 应用程序实现这一点?