angular / angular2-seed

MIT License
1.01k stars 640 forks source link

Build production #155

Open Hartaxfr opened 7 years ago

Hartaxfr commented 7 years ago

Hi !

I run "npm run build" and i get main.bundle.js and main.map in dist folder. I thought I would have an index.html, ... How can I put my project in production ?

( I'm beginner in angular2 and also npm )

SaurabhHNaik commented 7 years ago

Just copy your index.html in dist folder and it should work. It might through error for base url in head tag. I know it is not ideal solution but it should work. Other way to handle this is to write a copy command in package.json 'script' object.

mcescalante commented 7 years ago

Hey guys just a heads up, my PR here: https://github.com/angular/angular2-seed/pull/158 fixes this issue and adds in an index.html generated during the build, and also updates Angular to a newer version as this repository is just a tad behind. Hopefully that can get merged in soon :)