Skip to content

Commit dcc7832

Browse files
Upgrade Hugo/tailwind integration. (#2060)
Upgrade Hugo/tailwind integration. Hugo now builds tailwind when running hugo server, output tailwind file no longer needed in source code.
1 parent 19e19d1 commit dcc7832

File tree

8 files changed

+1532
-3249
lines changed

8 files changed

+1532
-3249
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ static/css/main.min.css
1212
resources/_gen/
1313
.hugo_build.lock
1414
.vscode/
15-
**/.DS_Store
15+
**/.DS_Store
16+
hugo_stats.json
17+
themes/le-2025/assets/css/le-2025-theme-output.css

config/_default/hugo.toml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,27 @@ enableRobotsTXT = true
1010
# Note that this currently has no effect in Hugo.
1111
timezone = "America/Los_Angeles"
1212

13-
assetDir = "src"
13+
[build]
14+
[build.buildStats]
15+
enable = true
16+
[[build.cachebusters]]
17+
source = 'assets/notwatching/hugo_stats\.json'
18+
target = 'css'
19+
[[build.cachebusters]]
20+
source = '(postcss|tailwind)\.config\.js'
21+
target = 'css'
22+
23+
[module]
24+
[[module.mounts]]
25+
source = 'src'
26+
target = 'assets'
27+
[[module.mounts]]
28+
source = 'themes/le-2025/assets'
29+
target = 'assets'
30+
[[module.mounts]]
31+
disableWatch = true
32+
source = 'hugo_stats.json'
33+
target = 'assets/notwatching/hugo_stats.json'
1434

1535
[params]
1636

0 commit comments

Comments
 (0)