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

Build production #155

Description

@Hartaxfr

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 )

Activity

  1. SaurabhHNaik commented on Feb 13, 2017

    @SaurabhHNaik

    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.

  2. mcescalante commented on Feb 13, 2017

    @mcescalante
    Contributor

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions