docs: Specify when an app is debuggable by the DevTools. (#48970)

DevMode is when the ng debug object is available. `Optimization:true` is responsible for treeshaking everything behind `ngDevMode`.

Fixes #48968

PR Close #48970
This commit is contained in:
Matthieu Riegler
2023-02-06 15:38:59 +01:00
committed by Jessica Janiuk
parent 6daa454e40
commit 49386de19f
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# DevTools Overview
Angular DevTools is a browser extension that provides debugging and profiling capabilities for Angular applications.
Angular DevTools supports Angular v12 and later.
Angular DevTools supports Angular v12 and later when compiled with the [optimization configuration option](guide/workspace-config#optimization-configuration) disabled (<code>{optimization:false}</code>).
<div class="video-container">
@@ -11,8 +11,8 @@
</ng-template>
</ng-container>
<ng-template #angularIsInProdMode>
<p class="text-message">
We detected an application built with production configuration. Angular DevTools only supports builds where <code>optimization</code> is set to <code>false</code>.
<p class="text-message" title="A dev build is when the `optimization` flag is set to `true` in the angular.json config file.">
We detected an application built with production configuration. Angular DevTools only supports development build.
</p>
</ng-template>
</ng-container>
@@ -66,6 +66,7 @@
font-size: 1.2em;
padding: 5px;
text-align: center;
cursor: help;
.info-icon {
display: inline-block;