You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
when we can use grunt-bower to copy them and then concat all to vendor.{css,js} and then connect only two additional files or just into app.js/main.css directly.
The problem here lies in the loading order of scripts and stylesheets. If you add scripts that depend on other scripts to load first (i.e. Backbone needs jQuery and Lo-dash to load first), you will run into trouble with the solution that you posted. Plus, bower packages can add a lot of extra files that I wouldn't want copied over and I'm not really sure how grunt-bower handles this.
Currently, I think the <!-- build --> comments are the most flexible way of handling this.
But wait, grunt-bower uses package dependencies, i.e. if backbone depends on jquery so it will be concatinated after jquery. So no need to manage it manually. It you want it, you can participate into curist/grunt-bower#19 discussion.
It's strange that I need to link manually every installed component into my template like this:
when we can use
grunt-bower
to copy them and then concat all tovendor.{css,js}
and then connect only two additional files or just intoapp.js
/main.css
directly.It's simple:
Or something similar. It would be very very simpler than including them into templates with special comments manually.
Better to leave this trick for a Bower packages with wrong
main
string in theirbower.json
files. I seen a one.The text was updated successfully, but these errors were encountered: