Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

I am using https://github.com/AngularClass/angular2-webpack-starter as seed project and it's awesome.

But i can't understand how to include third party JS lib in my project using Webpack. I know it can be done using <script src="third/party"></script> But i want to do it in angular way like import { ThirdParty } from 'third-part/';

And Also please suggest the standard way to use javascript library in angular2 project using webpack.

share|improve this question

Place the import statement in your src/vendor.ts file, this should do the trick.

if not, you may have to resort to the <script></script>

share|improve this answer
    
and content inside the vendor.ts – striker_axel Jul 5 at 9:09
    
what do you mean? – Colum Jul 5 at 9:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.