angular2-seed icon indicating copy to clipboard operation
angular2-seed copied to clipboard

Build production

Open Hartaxfr opened this issue 7 years ago • 2 comments

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 )

Hartaxfr avatar Jan 04 '17 21:01 Hartaxfr

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.

SaurabhHNaik avatar Feb 13 '17 01:02 SaurabhHNaik

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 :)

mcescalante avatar Feb 13 '17 20:02 mcescalante