简体   繁体   中英

How to Disable auto watch in Npm

I use node 'npm start' to compile my Angular 2 project, But I need to compile.tsc files manually not using the auto watch.

I want to do that as I am using ASP.net with Angular and for a reason, solution don't see my changes

How to turn off live reload for npm start in an Angular project:

In your package.json file, set the --live-reload=false option for ng serve :

在此处输入图像描述

place a bs-config.json file in your project folder containing:

{
 "files": ["./src/**/*.{html,htm,css}"]
}

so it won't watch js files anymore

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM