You should insert out the bower section, for example:
<script src="bower_components/jquery/dist/jquery.js"></script> <script src="bower_components/angular/angular.js"></script> <script src="bower_components/bootstrap/dist/js/bootstrap.js"></script> … <script src="bower_components/angular-loading-bar/build/loading-bar.js"></script> <script src="bower_components/angular-hotkeys/build/hotkeys.min.js"></script> <script src="bower_components/moment/locale/es.js"></script>
Your grunt / gulp task will automatically populate the bower:js section (each time a change to bower.json ) by looking at the main entry in the bower.json files of each component that you need. Locale files are not listed as main files, so even if you place them between the bower:js and endbower manually, this will disappear with the next change to the bower.json file or during the build process.
The code that you put outside the bower section will remain there.
And as a result, during the build process, all the files associated with between build:js and endbuild comments are combined into one vendor.js file.
source share