Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Build production #155

Open
Hartaxfr opened this issue Jan 4, 2017 · 2 comments
Open

Build production #155

Hartaxfr opened this issue Jan 4, 2017 · 2 comments

Comments

@Hartaxfr
Copy link

Hartaxfr commented Jan 4, 2017

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
Copy link

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
Copy link
Contributor

mcescalante commented Feb 13, 2017

Hey guys just a heads up, my PR here: #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 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants