Skip to content

Commit de43567

Browse files
committed
Upgrade to tailwind4
1 parent d24d872 commit de43567

File tree

20 files changed

+1241
-1200
lines changed

20 files changed

+1241
-1200
lines changed

astro.config.mjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import path from "path";
22
import { defineConfig } from "astro/config";
33
import mdx from "@astrojs/mdx";
44
import sitemap from "@astrojs/sitemap";
5-
import tailwind from "@astrojs/tailwind";
65
import remarkToc from "remark-toc";
76
import rehypeSlug from "rehype-slug";
87
import rehypeAutolinkHeadings from "rehype-autolink-headings";
@@ -11,6 +10,7 @@ import pagefind from "astro-pagefind";
1110
import deleteUnusedImages from "astro-delete-unused-images";
1211
import { execSync } from "node:child_process";
1312
import compress from "astro-compress";
13+
import tailwindcss from "@tailwindcss/vite";
1414

1515
let gitVersion = String(process.env.GIT_VERSION ?? "").slice(0, 7);
1616

@@ -60,6 +60,7 @@ export default defineConfig({
6060
),
6161
__GIT_VERSION__: JSON.stringify(gitVersion),
6262
},
63+
6364
resolve: {
6465
alias: {
6566
"@utils": path.resolve("./src/utils"),
@@ -74,6 +75,8 @@ export default defineConfig({
7475
"@src": path.resolve("./src"),
7576
},
7677
},
78+
79+
plugins: [tailwindcss()],
7780
},
7881
markdown: {
7982
remarkPlugins: [
@@ -93,6 +96,7 @@ export default defineConfig({
9396
},
9497
],
9598
],
99+
plugins: [tailwindcss()],
96100
},
97101
site: process.env.SITE_URL || "https://ep2025.europython.eu",
98102
redirects: {
@@ -109,9 +113,6 @@ export default defineConfig({
109113
integrations: [
110114
mdx(),
111115
sitemap(),
112-
tailwind({
113-
nesting: true,
114-
}),
115116
metaTags(),
116117
pagefind(),
117118
deleteUnusedImages(),

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,37 @@
1313
"dependencies": {
1414
"@astro-community/astro-embed-youtube": "^0.5.6",
1515
"@astrojs/check": "^0.9.4",
16-
"@astrojs/mdx": "^4.2.6",
17-
"@astrojs/sitemap": "^3.3.1",
16+
"@astrojs/mdx": "^4.3.0",
17+
"@astrojs/sitemap": "^3.4.0",
1818
"@astrojs/tailwind": "^5.1.5",
1919
"@fortawesome/fontawesome-free": "^6.7.2",
2020
"@tailwindcss/typography": "^0.5.16",
21-
"astro": "^5.7.5",
21+
"@tailwindcss/vite": "^4.1.7",
22+
"astro": "^5.8.0",
2223
"astro-compress": "^2.3.8",
2324
"astro-delete-unused-images": "^1.0.3",
24-
"astro-meta-tags": "^0.3.1",
25+
"astro-meta-tags": "^0.3.2",
2526
"astro-pagefind": "^1.8.3",
2627
"astro-preload": "^1.1.2",
2728
"clsx": "^2.1.1",
2829
"date-fns": "^4.1.0",
2930
"date-fns-tz": "^3.2.0",
3031
"hastscript": "^9.0.1",
3132
"js-yaml": "^4.1.0",
32-
"marked": "^15.0.11",
33+
"marked": "^15.0.12",
3334
"pagefind": "^1.3.0",
3435
"rehype-autolink-headings": "^7.1.0",
3536
"rehype-slug": "^6.0.0",
3637
"remark-toc": "^9.0.0",
37-
"sharp": "^0.34.1",
38-
"tailwindcss": "^3.4.17",
38+
"sharp": "^0.34.2",
39+
"tailwindcss": "^4.1.7",
3940
"typescript": "^5.8.3"
4041
},
4142
"devDependencies": {
4243
"@types/js-yaml": "^4.0.9",
4344
"prettier": "^3.5.3",
4445
"prettier-plugin-astro": "^0.14.1",
45-
"puppeteer": "^24.7.2",
46+
"puppeteer": "^24.9.0",
4647
"tsx": "^4.19.4",
4748
"typescript": "^5.8.3"
4849
},

0 commit comments

Comments
 (0)