Amit Kadam
Amit Kadam

Reputation: 59

where to find systemjs.config.js in angular2 cli

I need to update that file for adding 1 reference/dependency for 'angular2-in-memory-web-api' as the file and this ref is missing from my files? Can anybody help me to create/find the same? Thanks

Upvotes: 2

Views: 2591

Answers (2)

Wasif Ali
Wasif Ali

Reputation: 894

Angular2 uses webpack, there is no systemjs.config.js in project created by angular2-cli.

More detailed explanation is here Differences between SystemJS and Webpack

Upvotes: 1

Max Koretskyi
Max Koretskyi

Reputation: 105497

Angular-CLI doesn't use SystemJS starting from the Beta.12. Read this announcement. Hence there's no systemjs.config.js anymore. It uses webpack now.

I need to update that file for adding 1 reference/dependency

With webpack you don't need to add anything to the configuration. Webpack resolves dependencies automatically during build type.

Upvotes: 3

Related Questions