properly configures tailwind

This commit is contained in:
Drew
2025-04-17 18:35:56 -06:00
parent a0f84311d2
commit 255cd357c5
4 changed files with 642 additions and 467 deletions

View File

@ -20,3 +20,29 @@ theme = "hugo-starter-tailwind-basic"
[params.author] [params.author]
name = "Media Economies Design Lab" name = "Media Economies Design Lab"
twitter = "" twitter = ""
[module]
[module.hugoVersion]
extended = false
min = "0.112.0"
[[module.mounts]]
source = "assets"
target = "assets"
[[module.mounts]]
source = "hugo_stats.json"
target = "assets/watching/hugo_stats.json"
[build]
writeStats = true
[[build.cachebusters]]
source = "assets/watching/hugo_stats\\.json"
target = "styles\\.css"
[[build.cachebusters]]
source = "(postcss|tailwind)\\.config\\.js"
target = "css"
[[build.cachebusters]]
source = "assets/.*\\.(js|ts|jsx|tsx)"
target = "js"
[[build.cachebusters]]
source = "assets/.*\\.(.*)$"
target = "$1"

1068
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,16 +11,16 @@
} }
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/typography": "^0.4.1", "@tailwindcss/typography": "^0.5.9",
"autoprefixer": "^10.3.1", "autoprefixer": "^10.3.1",
"postcss": "^8.3.6", "postcss": "^8.3.6",
"postcss-cli": "^8.3.1", "postcss-cli": "^8.3.1",
"postcss-purgecss": "^2.0.3", "postcss-purgecss": "^2.0.3",
"tailwindcss": "^2.2.7" "tailwindcss": "^3.3.2"
}, },
"scripts": { "scripts": {
"build:css": "postcss assets/css/tailwind.css -o static/css/tailwind.css", "build:css": "postcss assets/css/main.scss -o static/css/main.css",
"watch:css": "postcss assets/css/tailwind.css -o static/css/tailwind.css --watch" "watch:css": "postcss assets/css/main.scss -o static/css/main.css --watch"
}, },
"name": "protocol-oral-history-project", "name": "protocol-oral-history-project",
"version": "0.1.0" "version": "0.1.0"

View File

@ -1,8 +1,9 @@
module.exports = { module.exports = {
content: [ content: [
'./hugo_stats.json',
'./layouts/**/*.html', './layouts/**/*.html',
'./content/**/*.md', './content/**/*.{html,md}',
'./assets/scss/**/*.scss', './themes/**/layouts/**/*.html'
], ],
theme: { theme: {
extend: { extend: {