While executing ng build --prod --base-href ./ for building my cordova app, the final output throws an error as below.
Failed to load module script: The server responded with a non-JavaScript MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.
I did end up fixing this by changing type module to text/javascript
src="runtime-es2015.858f8dd898b75fe86926.js" type="module">
src="runtime-es2015.858f8dd898b75fe86926.js" type="text/javascript">
Is there something that can be done within angular.json file to fix or am I missing out something here?