I have configured some github actions which does a npm run build-prod.
In the package.json under scripts is the following:
"build-prod": "ng build --configuration=production"
I have also tried ng build --production, adding "--base-href /Pfad/" and/or "--deploy-url /Pfad/" but without any positive solution.
In the angular.json and configuration is "production", which replaces "environment.ts" with "environment.prod.ts".
Now the error message:
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
Github actions are green
Funny thing is, this workflow worked last week and I only touched it, because the error message appeared... I am happy for every help I can get 🙂 Thanks in advance