Skip to content

Update 3rd party libs wiki page with new webpack build #1551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pablodenadai opened this issue Aug 4, 2016 · 6 comments
Closed

Update 3rd party libs wiki page with new webpack build #1551

pablodenadai opened this issue Aug 4, 2016 · 6 comments

Comments

@pablodenadai
Copy link

Versions
angular-cli: 1.0.0-beta.11-webpack
node: 5.3.0
os: win32 x64


3rd party libs content is outdated. It should describe the process of adding 3rd party libs using webpack instead of broccoli.

@efriandika
Copy link

Help us @filipesilva 💃

@TheLarkInn
Copy link
Member

I can give some insight if needed. If the third party module can be imported via npm install, AND the 3rd party lib is of one of the following JS Module format: (es6, commonjs, commonjs2, amd, typescript), then you can simply import the file into your app (as long as you have valid ambient or global typings for it).

@TheLarkInn
Copy link
Member

However if you have a var, global style 3rd party module, you will not be able to include the library. (unless hacking a bit at it). This is going to be feature we add here in the near future.

@masaanli
Copy link

masaanli commented Aug 6, 2016

@TheLarkInn I can confirm this, it is working. I used 'ng-bootstrap' as example form the Angular UI Team.

Now going to try the other libraries I want to use.
Waiting for the guide how to hack a bit hehe.

Sometimes you see in NPM a webpack package, is it smarter to install the webpack version of the thirdparty library instead of the normal one?

@filipesilva
Copy link
Contributor

I've updated the README to reflect usage of third party libs on the webpack branch. It's way, way easier than before, but as @TheLarkInn mentioned the globals bit of it is still not working.

#1633 addresses loading of global CSS as well.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants