Is there a way to remove specific asset or find out what asset bundles used in current page so I can re-order javascript files?
Let me illustrate my problem. In the generated HTML file, the javascript files section:
[html]
<script src="/assets/1f0fee87/jquery.js"></script>
<script src="/assets/3f709036/yii.js"></script>
// some other javascript files from vendor
<script src="/assets/59dcaa34/js/x.js"></script>
// the following are included in customized asset bundles
<script src="/project/assets/plugins/jquery-slider/jquery.sidr.min.js"></script>
<script src="/project/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="/project/assets/plugins/boostrapv3/js/bootstrap.min.js"></script>
<script src="/project/assets/plugins/breakpoints.js"></script>
// other customized asset bundle files
[/html]
This currently causes conflict because x.js needs to be after bootstrap.min.js, and bootstrap.min.js must be positioned after those 2 js files.
Is there a way to find out the name of asset bundle x belongs to (it comes from vendor) and move it after bootstrap.min.js? Or what is the best solution for this?