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

ng serve removes the dist folder, don't see why developing should remove my production build #4830

Closed
insidewhy opened this issue Feb 19, 2017 · 3 comments

Comments

@insidewhy
Copy link

OS?

Linux (arch)

Versions.

1.0.0-beta30

Repro steps.

  1. ng build --prod
  2. ng serve
  3. ng serve has now removed my dist folder.
@grizzm0
Copy link
Contributor

grizzm0 commented Feb 19, 2017

This was done on purpose.

See: #4293, #4366

@insidewhy
Copy link
Author

Seems to me like documenting behaviour would have been a better approach to #4293 than deleting the folder. Looks to me like you're treating the symptoms rather than the disease with the current approach and this philosophy concerns me. There's also an element of "capitulating to ignorance" about the approach you took which also niggles at me ;)

In my instance I was building some server code into dist. Perhaps I should have built it into a folder under /dev/shm but the simplest quick solution seemed to be to put the code alongside the client output. angular-cli deleting my code was an inconvenience.

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

2 participants