In the process of developing a C# Angular application, I currently have my scripts called within the layout.cshtml file using the following code:
<script src="~/bundles/runtime.js"></script>
<script src="~/bundles/polyfills.js"></script>
<script src="~/bundles/vendor.js"></script>
<script src="~/bundles/scripts.js"></script>
<script src="~/bundles/main.js"></script>
However, this method poses problems during deployment as the files are renamed to main.2398saa929, etc. Despite this renaming, the deployed app still makes calls to runtime.js, polyfills.js, etc. I have attempted to resolve this by adding
I am now seeking an alternative approach to bundling these scripts that will function effectively both locally and on the server during deployment.