angular-cli-library icon indicating copy to clipboard operation
angular-cli-library copied to clipboard

Build directory

Open intellix opened this issue 8 years ago • 2 comments

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

intellix avatar Aug 08 '17 16:08 intellix

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 avatar Aug 08 '17 16:08 nekkon

I have created an issue in angular-cli. https://github.com/angular/angular-cli/issues/7309

nekkon avatar Aug 09 '17 11:08 nekkon