-
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
ng build changes the modified date on files it doesn't modify #14003
Comments
Hi @BenROhio, thanks for filling this. This seems quite a specific request and at the moment this doesn't fall in the CLI roadmap and we are cautions in increasing the CLI scope. Most likely this can be down with ngx-build-plus and a a custom webpack plugin. Let's re-open this if this becomes a popular request. Thanks for your understanding. |
Also of note is that https://github.com/webpack-contrib/copy-webpack-plugin performs the actual asset copying and it may be useful to raise an issue at that repository. |
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. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: ....No
Description
A clear and concise description of the problem..."ng build" changes the modified date on every file that ends up in the dist folder including files it just copies into place without modifying, such as font files and images. This makes it difficult to copy just things that have changed using robocopy. Please retain the timestamps on unaltered files.
🔬 Minimal Reproduction
Please include: commands run (including args), packages added, related code changes.
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: