Skip to content

ng build generates "dist/index.html" in current folder and other files in different "dist" folder #7208

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

Closed
varadero opened this issue Jul 30, 2017 · 1 comment · Fixed by #7209

Comments

@varadero
Copy link

varadero commented Jul 30, 2017

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.2.6
node: 8.2.0
os: win32 x64
@angular/animations: 4.3.2
@angular/common: 4.3.2
@angular/compiler: 4.3.2
@angular/core: 4.3.2
@angular/forms: 4.3.2
@angular/http: 4.3.2
@angular/platform-browser: 4.3.2
@angular/platform-browser-dynamic: 4.3.2
@angular/router: 4.3.2
@angular/cli: 1.2.6
@angular/compiler-cli: 4.3.2
@angular/language-service: 4.3.2

Repro steps.

  1. ng new test01
  2. cd test01\src
  3. ng build

What happens is that a "dist" folder is created inside "src" and it contains the file index.html. All other files are in another "dist" folder under "test01".
Folder tree looks something like this:

test01
    dist <-- this one contains everything (.js files, font files, favicon.ico etc.) but index.html
        assets
    e2e
    src
        app
        assets
        dist <-- this one is in a wrong place and contains only index.html
        environments

The log given by the failure.

Desired functionality.

Output from ng build should be in "root-folder\dist". Current folder from where "ng buld" is executed should not be polluted with "dist" folder (the one that contains only "index.html" file).

Mention any other details that might be useful.

Might be somehow related to #7135

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant