From 3cfbde6be435bc0e956dbb46aadae994ff263103 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:28:44 +0100 Subject: [PATCH 01/19] add vercel settings --- vercel.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..7088c0a --- /dev/null +++ b/vercel.json @@ -0,0 +1,7 @@ +{ + "build": { + "env": { + "GO_VERSION": "1.21" + } + } +} From bcbbd84fb049aee5fa9cbeae5c725aa9deba3304 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:30:35 +0100 Subject: [PATCH 02/19] add buildcommand --- vercel.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 7088c0a..9c1e575 100644 --- a/vercel.json +++ b/vercel.json @@ -3,5 +3,6 @@ "env": { "GO_VERSION": "1.21" } - } + }, + "buildCommand": "hugo --gc --minify" } From 87a34858118410fc3659ebad124ad2c3a76cc905 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:32:12 +0100 Subject: [PATCH 03/19] revise vercel.json --- vercel.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vercel.json b/vercel.json index 9c1e575..85c2b20 100644 --- a/vercel.json +++ b/vercel.json @@ -1,8 +1,11 @@ { "build": { "env": { - "GO_VERSION": "1.21" + "GO_VERSION": "1.21", + "HUGO_VERSION": "0.121.0" } }, - "buildCommand": "hugo --gc --minify" + "buildCommand": "npm install && hugo --gc --minify", + "installCommand": "npm install", + "framework": "hugo" } From 48928c938135b4b1ba202a5d38be1fabb4ad96fe Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:34:56 +0100 Subject: [PATCH 04/19] try fixing missing go --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 85c2b20..f0d8f0f 100644 --- a/vercel.json +++ b/vercel.json @@ -5,7 +5,7 @@ "HUGO_VERSION": "0.121.0" } }, - "buildCommand": "npm install && hugo --gc --minify", + "buildCommand": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && hugo --gc --minify", "installCommand": "npm install", "framework": "hugo" } From 413d98d695b3ba5e69613c0ea479367644cc3cf4 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:38:21 +0100 Subject: [PATCH 05/19] try fixing postcss in vercel build --- vercel.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index f0d8f0f..1757627 100644 --- a/vercel.json +++ b/vercel.json @@ -2,7 +2,9 @@ "build": { "env": { "GO_VERSION": "1.21", - "HUGO_VERSION": "0.121.0" + "HUGO_VERSION": "0.121.0", + "HUGO_ENVIRONMENT": "production", + "NODE_ENV": "production" } }, "buildCommand": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && hugo --gc --minify", From 54f5ad1d7cea87639ec4e74bc487b5df15360ea6 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:43:02 +0100 Subject: [PATCH 06/19] new try --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 1757627..9c15cb2 100644 --- a/vercel.json +++ b/vercel.json @@ -7,7 +7,7 @@ "NODE_ENV": "production" } }, - "buildCommand": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && hugo --gc --minify", + "buildCommand": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && npx postcss ./assets/css/style.css -o ./public/css/style.css && hugo --gc --minify", "installCommand": "npm install", "framework": "hugo" } From 56b0c20d164eea830bd51a8b02aab1440cfab743 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:45:53 +0100 Subject: [PATCH 07/19] try to fix postcss --- .../layouts/partials/essentials/style.html | 34 +++++++++++++------ vercel.json | 2 +- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/themes/hugoplate/layouts/partials/essentials/style.html b/themes/hugoplate/layouts/partials/essentials/style.html index 7149f6d..1b5c9a7 100755 --- a/themes/hugoplate/layouts/partials/essentials/style.html +++ b/themes/hugoplate/layouts/partials/essentials/style.html @@ -31,6 +31,9 @@ {{ $styles := slice }} + + + {{ range site.Params.plugins.css }} {{ if findRE "^http" .link }} +{{ $mainScss := resources.Get "scss/main.scss" }} +{{ $mainStyle := $mainScss | toCSS }} +{{ $styles := $styles | append $mainStyle }} + + + +{{ $allStyles := $styles | resources.Concat "css/style.css" }} + + + {{ if hugo.IsProduction }} - {{ $styles = $styles | resources.ExecuteAsTemplate "css/style.css" . | minify | fingerprint | resources.PostProcess }} + {{ $allStyles = $allStyles | resources.ExecuteAsTemplate "css/style.css" . | minify | fingerprint }} + {{ else }} - {{ $styles = $styles | resources.ExecuteAsTemplate "css/style.css" . }} + {{ $allStyles = $allStyles | resources.ExecuteAsTemplate "css/style.css" . }} + {{ end }} - - - diff --git a/vercel.json b/vercel.json index 9c15cb2..1757627 100644 --- a/vercel.json +++ b/vercel.json @@ -7,7 +7,7 @@ "NODE_ENV": "production" } }, - "buildCommand": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && npx postcss ./assets/css/style.css -o ./public/css/style.css && hugo --gc --minify", + "buildCommand": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && hugo --gc --minify", "installCommand": "npm install", "framework": "hugo" } From bd8ece766d3de5b9af2977f0e593841d2c25915b Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:50:48 +0100 Subject: [PATCH 08/19] try to fix false build --- package.json | 1 + vercel.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9b9691e..3c95758 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "build": "hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", "dev:example": "cd exampleSite; hugo server", + "build:tailwind": "tailwindcss -i ./assets/scss/main.scss -o ./assets/css/style.css --minify", "build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test:example": "cd exampleSite; hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", "update-modules": "node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy", diff --git a/vercel.json b/vercel.json index 1757627..15c5515 100644 --- a/vercel.json +++ b/vercel.json @@ -7,7 +7,7 @@ "NODE_ENV": "production" } }, - "buildCommand": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && hugo --gc --minify", + "buildCommand": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && npm run build:tailwind && hugo --gc --minify", "installCommand": "npm install", "framework": "hugo" } From f55ae3a1aaffdb0a8005422fd997bae649ab71ff Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:55:35 +0100 Subject: [PATCH 09/19] try fixing tailwind build error --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3c95758..1c77f9b 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build": "hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", "dev:example": "cd exampleSite; hugo server", - "build:tailwind": "tailwindcss -i ./assets/scss/main.scss -o ./assets/css/style.css --minify", + "build:tailwind": "npx tailwindcss -i ./assets/scss/main.scss -o ./assets/css/style.css --minify", "build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test:example": "cd exampleSite; hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", "update-modules": "node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy", From 3da4485263572fe14449a3c2762bf0fdc66d103c Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:57:14 +0100 Subject: [PATCH 10/19] fix path --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1c77f9b..620ac39 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build": "hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", "dev:example": "cd exampleSite; hugo server", - "build:tailwind": "npx tailwindcss -i ./assets/scss/main.scss -o ./assets/css/style.css --minify", + "build:tailwind": "npx tailwindcss -i ./themes/hugoplate/assets/scss/main.scss -o ./themes/hugoplate/assets/css/style.css --minify", "build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test:example": "cd exampleSite; hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", "update-modules": "node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy", From 312b01cd6d2dd1002e5e8b843adb9fef8b2bb46c Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 08:04:14 +0100 Subject: [PATCH 11/19] try to fix cmd --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 15c5515..4be3a1b 100644 --- a/vercel.json +++ b/vercel.json @@ -7,7 +7,7 @@ "NODE_ENV": "production" } }, - "buildCommand": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && npm run build:tailwind && hugo --gc --minify", + "buildCommand": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && mkdir -p data && cp themes/hugoplate/data/theme.json data/ && npm install && npm run build:tailwind && hugo --gc --minify", "installCommand": "npm install", "framework": "hugo" } From a36ecdc28845e4a24343d73bfbb69ecbbff511db Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Sun, 29 Dec 2024 08:06:15 +0100 Subject: [PATCH 12/19] try to fix cmd --- package.json | 1 + vercel.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 620ac39..4c31f84 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "build": "hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", "dev:example": "cd exampleSite; hugo server", + "vercel-build": "mkdir -p data && cp themes/hugoplate/data/theme.json data/ && curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && npm run build:tailwind && hugo --gc --minify", "build:tailwind": "npx tailwindcss -i ./themes/hugoplate/assets/scss/main.scss -o ./themes/hugoplate/assets/css/style.css --minify", "build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test:example": "cd exampleSite; hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", diff --git a/vercel.json b/vercel.json index 4be3a1b..a90922f 100644 --- a/vercel.json +++ b/vercel.json @@ -7,7 +7,7 @@ "NODE_ENV": "production" } }, - "buildCommand": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && mkdir -p data && cp themes/hugoplate/data/theme.json data/ && npm install && npm run build:tailwind && hugo --gc --minify", + "buildCommand": "npm run vercel-build", "installCommand": "npm install", "framework": "hugo" } From 4327b37d5dd9b5097c7fd780ca335574a3537d16 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Mon, 30 Dec 2024 16:30:05 +0100 Subject: [PATCH 13/19] try to fix cmd --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4c31f84..550ee94 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build": "hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", "dev:example": "cd exampleSite; hugo server", - "vercel-build": "mkdir -p data && cp themes/hugoplate/data/theme.json data/ && curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && npm run build:tailwind && hugo --gc --minify", + "vercel-build": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && npm run build:tailwind && hugo --gc --minify", "build:tailwind": "npx tailwindcss -i ./themes/hugoplate/assets/scss/main.scss -o ./themes/hugoplate/assets/css/style.css --minify", "build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test:example": "cd exampleSite; hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", From 68dfa4f3c37cd29275de2bc4b43a7a81c5bdc0c7 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Mon, 30 Dec 2024 16:36:02 +0100 Subject: [PATCH 14/19] incl dev dependencies --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index a90922f..44df2d4 100644 --- a/vercel.json +++ b/vercel.json @@ -8,6 +8,6 @@ } }, "buildCommand": "npm run vercel-build", - "installCommand": "npm install", + "installCommand": "npm install --include=dev", "framework": "hugo" } From 74fade63774ef872da15364247fd429cbd9e1323 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Mon, 30 Dec 2024 16:56:17 +0100 Subject: [PATCH 15/19] incl dev dependencies --- package.json | 2 +- vercel.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 550ee94..844ecdf 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build": "hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", "dev:example": "cd exampleSite; hugo server", - "vercel-build": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && npm run build:tailwind && hugo --gc --minify", + "vercel-build": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install --include-dev && npm run build:tailwind && hugo --gc --minify", "build:tailwind": "npx tailwindcss -i ./themes/hugoplate/assets/scss/main.scss -o ./themes/hugoplate/assets/css/style.css --minify", "build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test:example": "cd exampleSite; hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", diff --git a/vercel.json b/vercel.json index 44df2d4..a90922f 100644 --- a/vercel.json +++ b/vercel.json @@ -8,6 +8,6 @@ } }, "buildCommand": "npm run vercel-build", - "installCommand": "npm install --include=dev", + "installCommand": "npm install", "framework": "hugo" } From 3c77f8f811c785ba5c8ae660170bb3aff3324224 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Mon, 30 Dec 2024 16:57:34 +0100 Subject: [PATCH 16/19] incl dev dependencies --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 844ecdf..41fedb4 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "update-modules": "node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy", "format": "prettier -w ." }, - "devDependencies": { + "dependencies": { "@fullhuman/postcss-purgecss": "^5.0.0", "@tailwindcss/forms": "^0.5.6", "@tailwindcss/typography": "^0.5.10", From 787a2d7718988025995ecd5dc91ef23b3f116ca1 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Mon, 30 Dec 2024 17:06:00 +0100 Subject: [PATCH 17/19] fix cmd --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 41fedb4..19184d9 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build": "hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", "dev:example": "cd exampleSite; hugo server", - "vercel-build": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install --include-dev && npm run build:tailwind && hugo --gc --minify", + "vercel-build": "curl -L -o go.tar.gz https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && tar -C /usr/local -xzf go.tar.gz && export PATH=$PATH:/usr/local/go/bin && npm install && npm run build:tailwind && NODE_ENV=production && HUGO_ENVIRONMENT=production hugo --gc --minify", "build:tailwind": "npx tailwindcss -i ./themes/hugoplate/assets/scss/main.scss -o ./themes/hugoplate/assets/css/style.css --minify", "build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", "test:example": "cd exampleSite; hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", From 9377c257990e5a4aefbcf2c55aec7e3ce0be528f Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Mon, 30 Dec 2024 17:13:54 +0100 Subject: [PATCH 18/19] updated tailwind.config.js --- package.json | 2 +- tailwind.config.js | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 19184d9..9d897ed 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "update-modules": "node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy", "format": "prettier -w ." }, - "dependencies": { + "devDependencies": { "@fullhuman/postcss-purgecss": "^5.0.0", "@tailwindcss/forms": "^0.5.6", "@tailwindcss/typography": "^0.5.10", diff --git a/tailwind.config.js b/tailwind.config.js index 3642bb6..5aec021 100755 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -28,7 +28,13 @@ if (theme.fonts.font_family.secondary) { /** @type {import('tailwindcss').Config} */ module.exports = { - content: ["./hugo_stats.json"], + content: [ + "./layouts/**/*.{html,js}", + "./themes/**/layouts/**/*.{html,js}", + "./content/**/*.{md,html}", + "./themes/**/content/**/*.{md,html}", + "./hugo_stats.json", + ], safelist: [{ pattern: /^swiper-/ }], darkMode: "class", theme: { @@ -99,4 +105,4 @@ module.exports = { }, }), ], -}; \ No newline at end of file +}; From b5e58dd4e74297d19a8b060f8803ce3176b01748 Mon Sep 17 00:00:00 2001 From: Yves Boutellier <63062257+yvesbou@users.noreply.github.com> Date: Mon, 30 Dec 2024 17:15:03 +0100 Subject: [PATCH 19/19] moved devDependencies to dependencies --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9d897ed..19184d9 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "update-modules": "node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy", "format": "prettier -w ." }, - "devDependencies": { + "dependencies": { "@fullhuman/postcss-purgecss": "^5.0.0", "@tailwindcss/forms": "^0.5.6", "@tailwindcss/typography": "^0.5.10",