Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build directory #2

Open
intellix opened this issue Aug 8, 2017 · 2 comments
Open

Build directory #2

intellix opened this issue Aug 8, 2017 · 2 comments

Comments

@intellix
Copy link
Collaborator

intellix commented Aug 8, 2017

Been having a go at implementing this myself and found that my directory structure is a bit iffy so I tried this one again and found the same thing.

After an ng build the following structure is created:

dist
    /app1
        main.bundle.js
        vendor.bundle.js
        etc.js
        /app1
            index.html

It looks like the index.html ends up in a folder with the same name referencing files that are in the upper directory. Have you found any workaround/fix for this? I tried setting outDir from dist/app1 to dist aaand tried changing the index property to index.html. I'm thinking that CLI is assuming something wrong here. I imagine it can be fixed with a Node server and setting the static folder to be 1x up, but it's a bit weird

@nekkon
Copy link
Owner

nekkon commented Aug 8, 2017

If you transfer index.html to dist/app1 folder everything should work fine. Unfortunately it is the best solution at the moment. I will keep this issue open till it is properly solved.

@nekkon
Copy link
Owner

nekkon commented Aug 9, 2017

I have created an issue in angular-cli.
angular/angular-cli#7309

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

No branches or pull requests

2 participants