While working on the Angular quickstart tutorial, I've noticed that my browser automatically refreshes whenever I make a change, even without saving. This unnecessary auto-refresh puts extra strain on my computer, as I prefer to manually refresh when ready.
I attempted adding "watch": false
in my tsconfig.json
file:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"watch": false
}
}
However, after restarting npm start
, it seems like nothing has changed.
I also tried removing the -w
switch from the compiler command in package.json
, but that didn't make any difference.
I verified that my IDE (WebStorm) isn't set to auto-save changes.
How can I disable this automatic browser refresh feature?