-
Notifications
You must be signed in to change notification settings - Fork 12k
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
fix(serve): delete dist on serve #4293
Conversation
`ng serve` will serve the app from memory, but it's easy to think that it just serves what's in `dist/`. This way, `dist/` is deleted on `ng serve` and users will not have a `dist/` dir where they might think the files are being served from. Partially address angular#4290
`ng serve` will serve the app from memory, but it's easy to think that it just serves what's in `dist/`. This way, `dist/` is deleted on `ng serve` and users will not have a `dist/` dir where they might think the files are being served from. Partially address angular#4290
Why not just notify the user at the terminal? I am using my If this isn't an option, I need to put the built files in a subdirectory like |
@jaesung2061 The output directory (whether dist or public) should be added to That being said, I would suggest creating a assets folder (doesn't need to be named assets) for files to be moved to the output dir upon build which should solve the issues you're having if other files are getting deleted. |
How can I update the generated html file so that it requests
Or instead of deleting the entire directory, you can delete the known generated files. E.g.
And the files listed in |
Just for your information: note that since 1.1.0-rc.0 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
ng serve
will serve the app from memory, but it's easy to think that it just serves what's indist/
.This way,
dist/
is deleted onng serve
and users will not have adist/
dir where they might think the files are being served from.Partially address #4290