Skip to content

outDir in angular-cli.json is not working #2230

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
Meligy opened this issue Sep 19, 2016 · 5 comments
Closed

outDir in angular-cli.json is not working #2230

Meligy opened this issue Sep 19, 2016 · 5 comments

Comments

@Meligy
Copy link
Contributor

Meligy commented Sep 19, 2016

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

    OSX Yosemite

  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:

    angular-cli: 1.0.0-beta.14
    node: 6.3.1
    os: darwin x64
    
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.

    ng new sample-app
    cd sample-app
    

    Then open angular-cli.json and change outDir from "dist" to "dist2"

    ng build
    
  4. The log given by the failure. Normally this include a stack trace and some
    more information.

    No tool failure, but wrong outcome.

    The output would still go to dist (actual) instead of dist2 (expected).

  5. Mention any other details that might be useful.

    I first tried this with ../external-folder and thought the ../ was the problem, but even just changing the folder name doesn't work.

@Meligy
Copy link
Contributor Author

Meligy commented Sep 20, 2016

Note:

Changing the output directory from the ng build command itself works just fine.

Both ng build -o dist2 and ng build -o ../external-folder will output to dist2 and ../external-folder respectively, even on Windows (so, it's not OS seems irrelevant here).

It's changing outDir in angular-cli.json that seems to do nothing though.

@osnoser1
Copy link

osnoser1 commented Sep 21, 2016

Same issue in Windows 10 x64, angular-cli: 1.0.0-beta.15, node: 6.5.0.

@filipesilva
Copy link
Contributor

Dupe of #2006

@notresponding2u
Copy link

Try something like "./dist2". For me that worked even when I want it to build outside the project root.

@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 8, 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

No branches or pull requests

4 participants