From 7ae62f4aa384a734faafe2a0918d7a6bc029f0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 19 Jul 2023 10:28:56 +0200 Subject: 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 --- testscripts/unfinished/server__watch_hugo_stats.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 testscripts/unfinished/server__watch_hugo_stats.txt (limited to 'testscripts/unfinished') diff --git a/testscripts/unfinished/server__watch_hugo_stats.txt b/testscripts/unfinished/server__watch_hugo_stats.txt new file mode 100644 index 000000000..179e59f8d --- /dev/null +++ b/testscripts/unfinished/server__watch_hugo_stats.txt @@ -0,0 +1,18 @@ +hugo server & + +waitServer +stopServer +! stderr . + +exists hugo_stats.json + +-- hugo.toml -- +title = "Hugo Server Test" +baseURL = "https://example.org/" +disableKinds = ["taxonomy", "term", "sitemap"] +[module] +[[module.mounts]] +source = "hugo_stats.json" +target = "assets/watching/hugo_stats.json" +-- layouts/index.html -- +Home -- cgit v1.2.3