Reputation: 1825
I am using the following command,
npm run ng build --watch
Running
> [email protected] ng C:\Users\json
> ng "build"
It ignoring the watch flag, can any one help me on this.
Please don't get into why I am using npm run ng build --watch
that is a big story.
Upvotes: 0
Views: 603
Reputation: 1825
Found a workaround for this, in package.json added build:dev as new command and running npm run build:dev solves my issue
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"build:dev": "ng build --watch"
},
Upvotes: 1