Ng在IntelliJ Webstorm或IDEA中构建Angular 7项目 [英] Ng Build an Angular 7 Project in IntelliJ Webstorm or IDEA
问题描述
如何在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服务
,请运行"start"
脚本.请注意,IDE将自动创建用于运行 ng serve
的 Angular 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屋!