-
Notifications
You must be signed in to change notification settings - Fork 12k
[Q] Webpack: 3rd party dependencies? Plugins? #1607
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
Comments
Ex: import * as moment from 'moment'; Currently webpack is blackboxed. I know there have been discussions of allowing extensibility |
but what if wanna use js not in npm ? |
How about To explain more, the package in npm is named
after configuring it in the module.exports = function(defaults) {
return new Angular2App(defaults, {
vendorNpmFiles: [
// ...
'sortablejs/Sortable.min.js',
]
});
}; and mapping it in const map: any = {
// ...
'Sortable': 'vendor/sortablejs/Sortable.min.js',
}; Plus, the typings had namespace |
@deebloo I have a very similar question. However the package off npm I am using is StratumUI and is a SCSS/CSS library. How do I pull this in with the styleUrls? It seems like webpack has no idea that it's there since I'm not EDIT: Mine is now solved and fix. To import SCSS files from |
@deebloo sounds cool, but it doesn't work.
Installation:
I tried adding |
@deebloo no i dont use other package manager, but i have standalone js library wich i want to use. I store it in vendor directory. |
if it is something used as a global you can put it in the public directory and include it in your index.html file. Or put it somewhere in src and then at your root component say |
Dupe #1551 |
Thanks @deebloo for the great answers in this issue! There's a couple of different issues being discussed here:
I'm closing this issue because there are others that better capture the different parts of the problem. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
angular-cli-build.js
andsrc/system-config.ts
? And there is no webpack config?When referring to https://github.com/angular/angular-cli/blob/master/WEBPACK_UPDATE.md there is no instruction for migration of the dependencies.
EDIT: any translation of https://github.com/angular/angular-cli/wiki/3rd-party-libs to the new webpack branch would be great. Or is this impossible yet?
The text was updated successfully, but these errors were encountered: