shprink / angular2-nobullshit-boilerplate

Just what's necessary to build Angular2 apps with TS and Webpack nothing else!
http://examples.julienrenaux.fr/angular2-nobullshit-boilerplate/
MIT License
118 stars 12 forks source link

How to run in production? #11

Open andreastherkildsen opened 8 years ago

andreastherkildsen commented 8 years ago

Hi, i have been using your setup to develop a Angular 2 application.

So far i have been using the built-in devserver, but now i need to start considering my production environment. Can i run this with a barebones node.js and express server?

And if that is the case, do you have a server script that works particularly well with this setup?

Regards, Andreas Therkildsen.

shprink commented 8 years ago

Why would you need an express server? Do you want universal rendering? https://github.com/angular/universal

Creating the minified app is as simple as running npm run dumpprod.

ghost commented 8 years ago

I think he might be referring to how to use the minified app files.