diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-07-19 10:28:56 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-07-19 19:50:37 +0200 |
commit | 7ae62f4aa384a734faafe2a0918d7a6bc029f0b7 (patch) | |
tree | 2e877d6e39abf53eb9013bbc214882c03bc81bf8 /hugofs | |
parent | f1a061e9ed6d9fffab5db9ae693e23ebe3b0cd19 (diff) | |
download | hugo-7ae62f4aa384a734faafe2a0918d7a6bc029f0b7.tar.gz hugo-7ae62f4aa384a734faafe2a0918d7a6bc029f0b7.zip |
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
Diffstat (limited to 'hugofs')
-rw-r--r-- | hugofs/files/classifier.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hugofs/files/classifier.go b/hugofs/files/classifier.go index 09b239c21..bdac2d686 100644 --- a/hugofs/files/classifier.go +++ b/hugofs/files/classifier.go @@ -31,6 +31,8 @@ const ( FilenamePackageHugoJSON = "package.hugo.json" // The NPM package file. FilenamePackageJSON = "package.json" + + FilenameHugoStatsJSON = "hugo_stats.json" ) var ( |