chore: use CDN to download mermaid js (#651)

* chore: download js assets during build time

* chore: remove CDN asset download task and update Mermaid script fingerprinting
This commit is contained in:
Xin
2025-03-30 21:20:50 +01:00
committed by GitHub
parent b700825943
commit 8021437f77
5 changed files with 34 additions and 2253 deletions

View File

@ -5,7 +5,7 @@
enable = true
disableIDs = true
[[build.cachebusters]]
source = 'assets/watching/hugo_stats\.json'
source = 'assets/notwatching/hugo_stats\.json'
target = 'styles\.css'
[[build.cachebusters]]
source = '(postcss|tailwind)\.config\.mjs'
@ -23,4 +23,5 @@
target = "assets"
[[module.mounts]]
source = "hugo_stats.json"
target = "assets/watching/hugo_stats.json"
target = "assets/notwatching/hugo_stats.json"
disableWatch = true