Angular `ng serve--prod` 和 `ng serve-c production` 一样吗?
Angular `ng serve --prod` is the same as `ng serve -c production`?
我正在使用 Angular 7,我想知道
ng serve --prod
与
相同
ng serve -c production
无法在文档中找到它,因此我们将不胜感激
这里有一些关于它的文档:https://angular.io/cli/build
它说 -c
是 --configuration
的别名
A named build target, as specified in the "configurations" section of
angular.json. Each named target is accompanied by a configuration of
option defaults for that target.
Aliases: -c
--prod
的文档说:
When true, sets the build configuration to the production target. All builds make use of bundling and limited tree-shaking. A production
build also runs limited dead code elimination.
所以我听起来是一样的。
我正在使用 Angular 7,我想知道
ng serve --prod
与
相同ng serve -c production
无法在文档中找到它,因此我们将不胜感激
这里有一些关于它的文档:https://angular.io/cli/build
它说 -c
是 --configuration
A named build target, as specified in the "configurations" section of angular.json. Each named target is accompanied by a configuration of option defaults for that target.
Aliases: -c
--prod
的文档说:
When true, sets the build configuration to the production target. All builds make use of bundling and limited tree-shaking. A production build also runs limited dead code elimination.
所以我听起来是一样的。