Skip to content

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

Open
@divinerites

Description

@divinerites

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.

  • When we mount /static/css/ in assets/css and use them as resources the refresh is not correctly done.
  • You can see a minimal example here
  • Steps to reproduce :
  1. go to index.htm => h2 is red in static/css/static.css & h3 is blue in assets/css/assets.css
  2. change background in assets.css for yellow => works as expected. Refresh OK. background is yellow.
  3. change background in static.css for green => there is no refresh. Background stays red. The site is rebuilt, but not refreshed (see message below)
  4. Change anything is assets.css and save => the refresh is OK and the static background is now showing green.
  5. --disableFastRender has no effect.
[[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 /

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions