Getting Started with the Anuglar2Spa Template - Add a new dependency #909

Closed
opened 2025-08-09 17:18:08 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @spottedmahn on 3/23/2017

I'm trying to figure out how to add bootstrap-toggle from npm to my project. There's a CSS and JS file. I added it to my package.json and I see it in my node_modules directory.

I'm thinking I need to add 'bootstrap-toggle' to the webpack.config.vendor.js file in the vendor array but that doesn't seem to be working.

Is there any documentation/blogs on adding new dependencies? Thanks!!

*Originally created by @spottedmahn on 3/23/2017* I'm trying to figure out how to add [bootstrap-toggle from npm](https://www.npmjs.com/package/bootstrap-toggle) to my project. There's a CSS and JS file. I added it to my package.json and I see it in my node_modules directory. I'm thinking I need to add 'bootstrap-toggle' to the webpack.config.vendor.js file in the vendor array but that doesn't seem to be working. Is there any documentation/blogs on adding new dependencies? Thanks!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#909
No description provided.