diff --git a/config/_default/build.toml b/config/_default/build.toml deleted file mode 100644 index 534d68eff..000000000 --- a/config/_default/build.toml +++ /dev/null @@ -1,2 +0,0 @@ -noJSConfigInAssets = true -writeStats = true diff --git a/config/_default/config.toml b/config/_default/config.toml index 8db22a336..52f591b97 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -6,6 +6,15 @@ enableRobotsTXT = true # Enable to calculate the last modified date from Git history and show it in the post header #enableGitInfo = true +[build] + noJSConfigInAssets = true + [build.buildStats] + # With each build, Hugo writes a hugo_stats.json file that contains arrays + # of the class attributes, id attributes, and tags of each HTML element + # within the published site. For production builds, this file is required + # by PurgeCSS to prune unused CSS. + enable = true + [markup] [markup.goldmark] [markup.goldmark.renderer] diff --git a/config/_default/module.toml b/config/_default/module.toml index 6e9ccdbaf..4aad4073d 100644 --- a/config/_default/module.toml +++ b/config/_default/module.toml @@ -2,7 +2,7 @@ #replacements = "github.com/schnerring/hugo-mod-json-resume -> ../../hugo-mod-json-resume" [hugoVersion] extended = true - min = "0.84.0" + min = "0.115.1" [[imports]] path = "github.com/schnerring/hugo-mod-json-resume" [[imports.mounts]] @@ -41,4 +41,9 @@ target = "static/fonts" [[mounts]] source = "node_modules/@tabler/icons/icons" - target = "assets/tabler-icons" \ No newline at end of file + target = "assets/tabler-icons" +[[mounts]] + # Add hugo_stats.json to Hugo's server watcher + # See https://gohugo.io/getting-started/configuration/#configure-cache-busters + source = "hugo_stats.json" + target = "assets/watching/hugo_stats.json" \ No newline at end of file