-
Notifications
You must be signed in to change notification settings - Fork 12k
index.html is rebuilt infinitely in watch mode, if it is right in the outputPath
path
#23923
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
Comments
Hi @zanctor, I am a bit confused by the steps above, as based on your explanation you are configuring both input and output to map to the same path In this case we should likely throw an error that the inputs will be overridden as this should never happen. |
@alan-agius4, I've got a real use case for that. |
Just had a chat with @clydin about this. Our recommendation is to place the AngularJS output in a different directory and keep the inputs and outputs of the Angular CLI separate and use the The fact that your setup previously work was due to the index file was not being watch, which was a bug and oversight on our end. |
@alan-agius4, makes sense. I will close the issue. |
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. |
Command
build
Is this a regression?
The previous version in which this bug was not present was
14.2.1
Description
If
index
path inangular.json
lies right under theoutputPath
(ex.index
ispublic/index.html
andoutputPath
ispublic
), it will cause infinite rebuilding of index.html when the--watch
option is used.Probably caused by #23852.
Minimal Reproduction
ng new testapp
with default settings.testapp/angular.json
and change theoutputPath
option tosrc
.cd testapp && ng build --watch --no-delete-output-path
and wait for initial build to finish.Exception or Error
No response
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: