Ionic V2 & npm modules

Hi All,

I have used V1 since in beta, I am now making my way over to V2. I have a number of npm plugins I would like to use, but I am missing something when adding them to my project.

if I use npm install external module - is there anything else I need to do to include this or does webpack deal with this for me? The reason I ask is that I don’t want to have to add an import from the node_modules directory in my index.html file.

Happy to be pointed at documentation, and perhaps this is my misunderstanding of webpack. Any help is appreciated.


I’ll recommend you to check out the following article: Ionic 2 and External Libraries. You’ll probably have to also customize the build process. Check out the ionic-gulp-tasks and more precisely scripts-copy.