How can I compile Angular directly on a mapped drive or network location? ng build --prod This works fine (angular.json)
"options": {
"outputPath": "dist/admin",
But I do it like this and it doesn't work
"options": {
"outputPath": "Z:\miwebprincipal\admin\web",
What you can do is, in your package.json add the following:
The
postbuild-prod
is executed immediately and automatically after doing thenpm run build-prod
.I already solved it, but making a .bat which I call from "postbuild-prod"
and the .bat is
I tried Oscar's answer but it wasn't working for me until I realized that I didn't have copyfiles installed
After installing it I did the build without problems