These are chat archives for AngularClass/angular2-webpack-starter

15th
Dec 2016
Saravanan Seenivasan
@SaravananSeenivasan
Dec 15 2016 09:27

hi all,
I'm novice in angular2
I tried to implement angular2-webpack combo, by splitting the code into two different projects.

I had my hello-world component in one of them, and the app module in the other.
what i tried to do is that bundle up the first project and use it as a dependency for the second.

Project 1 skeleton - https://gist.github.com/SaravananSeenivasan/05261250e652a58039302ab8607f710e

Project 2 skeleton - https://gist.github.com/SaravananSeenivasan/c13d7a839a030ea81d11c67db3ddf6c1

FYI : I'm using only the webpack -bundler and not the webpack-dev-server
On trying the above I ended up in the following error - "Error: Unexpected value 'undefined' declared by the module 'AppModule'"

Ryan
@TheeRFG
Dec 15 2016 23:09
Is there a way to output my dist files to a different directory and update them as I ng serve? I think someone told me currently web-pack serves out of memory. I actually don't want that.