Angular-cli: `ng serve` removes the `dist` folder, don't see why developing should remove my production build

Created on 19 Feb 2017  路  3Comments  路  Source: angular/angular-cli

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.

Most helpful comment

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.

All 3 comments

This was done on purpose.

See: #4293, #4366

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.

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jbeckton picture jbeckton  路  3Comments

jmurphzyo picture jmurphzyo  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments

rwillmer picture rwillmer  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments