Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yeoman install component manually

I want to use a library in my yeoman project that is not in the bower repo. What is the best way to integrate the library into the yeoman project structure? This library requires jquery to be loaded first.

like image 859
Hasen Avatar asked Nov 21 '25 19:11

Hasen


1 Answers

I just put the folders of client side javascript libs into my app/scripts/vendor folder and reference them to load in the index.html

Make sure you put the script tag inside these comment blocks

<!-- build:js scripts/scripts.js -->

and

<!-- endbuild -->

in order to have them minified and merged into one script file on build.

like image 81
cioddi Avatar answered Nov 23 '25 09:11

cioddi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!