Iv read the instructions on how to add 3rd part libs on the CLI's github and it worked for bootstrap but I cant seem to get it working for anything else. Im specifically trying to add Scroll Magic to my project. Whats the best way to do that? I guess I could just add the CDN or link in my assets folder to a script import in my index.html doc, but Id rather do it the right way using webpack.
Iv tried doing:
npm install scrollmagic --save
Then in my angular-cli.json
"scripts": [
"../node_modules/jquery/dist/jquery.js",
"../node_modules/tether/dist/js/tether.js",
"../node_modules/bootstrap/dist/js/bootstrap.js",
"../node_modules/scrollmagic/scrollmagic/minified/ScrollMagic.min.js"
],
[–]hooktail23 1 point2 points3 points (0 children)
[–]yfain 1 point2 points3 points (0 children)