Skip to content
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

Avoid writing to hugo_stats.json when there are no changes #10985

Closed
bep opened this issue May 22, 2023 · 1 comment · Fixed by #10986
Closed

Avoid writing to hugo_stats.json when there are no changes #10985

bep opened this issue May 22, 2023 · 1 comment · Fixed by #10986
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented May 22, 2023

I'm trying to use the newly added cachebusters with TailwindCSS 3 with a construct like the one below:

[module]
  [[module.mounts]]
    source = "assets"
    target = "assets"
  [[module.mounts]]
    source = "hugo_stats.json"
    target = "assets/watching/hugo_stats.json"
[build]
  writeStats = true
  [[build.cachebusters]]
    source = "assets/watching/hugo_stats\\.json"
    target = "styles\\.css"

Which looks odd and funky, but should allow me to do more fine grained builds as I would not have to trigger a Tailwind build for every template change. Unfortunately the above goes into an endless loop, which I suspect should be possible to prevent.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant