How do I rebuild my project in Angular. I build it first with ng build, yet cannot perform that command again as it wont let me change the folder.
I get this error message : EPERM: operation not permitted, lstat
Is there another command such as ng build update ?
When you use the ng serve command to build an application and serve it locally, the server automatically rebuilds the application and reloads the page when you change any of the source files.
ng build is the command you use when you're ready to build your application and deploy it. The CLI will analyze the application and build the files, all while optimizing the application as best as it can.
You can delete the output path before the build with:
ng build --delete-output-path
You can also use one of the alias such as:
ng build --deleteOutputPath
or
ng build -dop
Tested with Angular CLI 1.6.5 and Angular 5.2.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With