Skip to content

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

Closed

Description

@insidewhy

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.

Activity

  1. grizzm0 commented on Feb 19, 2017

    @grizzm0
    Contributor

    This was done on purpose.

    See: #4293, #4366

  2. insidewhy commented on Feb 19, 2017

    @insidewhy
    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.

  3. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    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.

  4. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions