angularjsgulpmean-stackwiredepgulp-inject

should I prefer gulp-inject or wiredep


I am getting myself used to task runners. When working with gulp, I found out that there are two plug-ins, gulp-inject and wiredep.

I understand that they are two things which do the same thing. Am I correct? If not, Can someone please explain it to me the differences between those two and the respective scenario's to use one and the other.


Solution

  • gulp-inject does a great job at selecting all your javascript and css files, while wiredep assists with selecting the right files from any installed bower packages.

    So if you are using "bower" in your projects, wiredep might sound like a better choice, otherwise gulp-inject will do just fine for you.