gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.87k stars 7.54k forks source link

CSS resources refresh problem when "static" is mounted on "assets" (with example repo) #7740

Open divinerites opened 4 years ago

divinerites commented 4 years ago

What version of Hugo are you using (hugo version)?

$ hugo version 
Hugo Static Site Generator v0.75.1/extended darwin/amd64 BuildDate: unknown

Does this issue reproduce with the latest release?

yes.

[[module.mounts]]
    source = "static/css"
    target = "assets/css"
[[module.mounts]]
    source = "assets/css"
    target = "assets/css"
Change of Static files detected, rebuilding site.
2020-09-27 15:56:49.063 +0200
Syncing css/static.css to /
github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

jmooring commented 2 years ago

This came up again, but when assets is mounted to static: https://discourse.gohugo.io/t/is-this-worth-mentioning-in-the-docs/37345

To reproduce:

git clone --single-branch -b hugo-forum-topic-37345 https://github.com/jmooring/hugo-testing hugo-forum-topic-37345
cd hugo-forum-topic-37345
hugo server

Then in a new terminal:

echo "body {color: red}" > assets/styles.css 

The page is not refreshed.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open. If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

divinerites commented 1 year ago

Still present in v0.110.0