I'm working on a ASP.NET Core web application (.csproj) that's being deploy on Azure directly from a git repo. I'm also using webpack to generate production bundles into a wwwroot/build folder.
I don't want those files in my repo so I excluded them, but of course when doing the gitdeploy the files are not sent to the server. The thing is I need to run a custom deployment script so I can run npm run prod-build (a script set in the package.json file) that runs webpack with the production flag. I'm looking into a kudu script but couldn't find any example for the new ASP.NET Core format.
I could make a deployment branch and push the bundles into it, but I'm trying to look for a "cleaner" solution.
Any ideas on what's the best approach to achieve this?
Thanks!