Languages
[Edit]
PT

Angular 7 - desativar o recarregamento automático do navegador

1 points
Created by:
Alyona
1170

Problema:

Edit

Como desativar o recarregamento automático no angular 7?

Quero parar de recarregar automaticamente no aplicativo angular 7.

Quando faço pequenas alterações no projeto, toda a página da Web é recarregada.
Há uma forma de desabilitá-lo?

Solução:

Edit

1. Encontre package.json
2. Altere a linha:
ANTES:

DEPOIS:

3. Reinicie o servidor

4. E ele funciona


O arquivo package.json fica assim:
ANTES:

DEPOIS:

Contexto:
https://github.com/angular/angular-cli/issues/1755
https://github.com/angular/angular-cli/issues/9742

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join