I have a web site with angularjs framework for front-end using index.html and .net REST API services.
I need to achieve something one of followings:
1. I can create a dummy MVC view and write @Scripts.Render(...)
to render all the bundled script and whatever I can see chrome developers tool e.g.
/bundles/angular?v=asIfVCRZ0mozQeQR34C1aw1HwLnnZATyODNO8bNn1mY1
I can take this to index.html and put in a way
<script src="/bundles/angular?v=asIfVCRZ0mozQeQR34C1aw1HwLnnZATyODNO8bNn1mY1"></script>
2. This is possible on my local, however I am not sure, if I publish to another server, there random key asIfVCRZ0mozQeQR34C1aw1HwLnnZATyODNO8bNn1mY1 will remain as is.
So questions here are:
- Is there any setting to keep this key unchanged?
- OR simply handling bundle & minification feature of angularjs-index.html page?
note- I do not want to use any of npm packages
@Scripts.Render(...)
, so from Chrome development tool I can get dynamic key. However need make sure this remains same across multiple environments. – Avi Kenjale 13 hours ago