My main.js should consist of jquery, bootstrap, jasny-bootstrap, angular, ng-infinite-scroll, and then custom functions particular to my site (in this order).
I’m getting everything from the bower_components properly; however, the gulp process always puts my custom functions (./assets/scripts/main.js) first. This causes issues.
How do I control the order these js files are compiled in?
I’ve changed the order in assets/manifest.js to the below.
I know this is an old issue but I am not sure if it was ever resolved.
I have four custom scripts in /assets/scripts/ and as the OP explained, for me, some of the custom scripts are being inserted before Bower scripts. This is causing issues when I have a dependency either on jQuery or other custom scripts.
Is there a fix that I can apply to make this work? I saw Austin’s pull request for adding gulp-order and path but it wasn’t merged into the Gulpfile. Was that a potential solution to the problem?