Ng 在 IntelliJ Webstorm 或 IDEA 中构建 Angular 7 项目 [英] Ng Build an Angular 7 Project in IntelliJ Webstorm or IDEA

查看:42
本文介绍了Ng 在 IntelliJ Webstorm 或 IDEA 中构建 Angular 7 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 IntelliJ IDEA 或 Webstorm 中构建 Angular CLI 项目?我想要一个选项来为我的 Angular 7 项目运行 ng build 命令,而不是通过命令提示符运行它.

How do I build an Angular CLI project in IntelliJ IDEA or Webstorm? I want an option to run ng build command for my Angular 7 Project, instead of running it through the command prompt.

推荐答案

要运行 ng build,请在 IDEA (WebStorm) 编辑器中打开您的 package.json 并按在 'build" 脚本左侧的装订线中运行图标:

To run ng build, open your package.json in IDEA (WebStorm) editor and press the run icon in the gutter to the left of the 'build" script:

要运行 ng serve,请运行 "start" 脚本.请注意,IDE 会自动创建用于运行 ng serveAngular CLI Server 运行配置,您可以使用它来启动应用程序.

To run ng serve, run "start" script. Note that the IDE auto-creates the Angular CLI Server run configuration for running ng serve, you can use it to start the app.

另见 https://blog.jetbrains.com/webstorm/2017/01/debugging-angular-apps/ - 你可能会发现这篇博文很有帮助

See also https://blog.jetbrains.com/webstorm/2017/01/debugging-angular-apps/ - you may find this blog post helpful

这篇关于Ng 在 IntelliJ Webstorm 或 IDEA 中构建 Angular 7 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆