The problem is these two commands.
npm install -y --production node_modules/.bin/au build --env production
Those two commands
- work on a development machine,
- work in the Azure App Service, if we run them in the deployment source (before Kudu Sync), and
- sometimes do not work, if we run them in the deployment target (after Kudu Sync).
When those commands do not work in the deployment target (i.e. in
D:\home\site\wwwroot), they still do not work if we "Redeploy" - unless we delete everything in
wwwroot before doing the redeploy.
What exactly do we need to delete for the redeploy to work?
We prefer to run those two problematic commands inside the deployment target, because then we do not have to re-install all of the
node_modules, which we do not store in version control.