]> git.maquefel.me Git - brevno-suite/hugo/commit
Create hugo_stats.json if it's mounted but does not exists
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 19 Jul 2023 08:28:56 +0000 (10:28 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 19 Jul 2023 17:50:37 +0000 (19:50 +0200)
commit7ae62f4aa384a734faafe2a0918d7a6bc029f0b7
tree2e877d6e39abf53eb9013bbc214882c03bc81bf8
parentf1a061e9ed6d9fffab5db9ae693e23ebe3b0cd19
Create hugo_stats.json if it's mounted but does not exists

A common pattern for Tailwind 3 is to mount that file to get it on the server watch list.

A common pattern is also to add hugo_stats.json to .gitignore.

This has meant that the first time you start the server (no hugo_stats.json), it just doesn't work as expected.

Fixes #11264
hugofs/files/classifier.go
hugolib/hugo_sites_build.go
modules/collect.go
testscripts/unfinished/server__watch_hugo_stats.txt [new file with mode: 0644]