Skip to content

Commit 35fbebf

Browse files
authored
Merge pull request #287 from sourcectl/chore/tailwind-v4-migration
chore: migrate from Tailwind CSS v3 to v4
2 parents b33f0e7 + 02ade3b commit 35fbebf

File tree

9 files changed

+734
-1916
lines changed

9 files changed

+734
-1916
lines changed

.github/workflows/astro-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- 'package.json'
1111
- 'package-lock.json'
1212
- 'astro.config.mjs'
13-
- 'tailwind.config.cjs'
13+
1414
- 'tsconfig.json'
1515
- '.node-version'
1616
- 'Makefile'
@@ -23,7 +23,7 @@ on:
2323
- 'package.json'
2424
- 'package-lock.json'
2525
- 'astro.config.mjs'
26-
- 'tailwind.config.cjs'
26+
2727
- 'tsconfig.json'
2828
- '.node-version'
2929
- 'Makefile'

astro.config.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import { defineConfig } from 'astro/config';
2-
import tailwind from '@astrojs/tailwind';
2+
import tailwindcss from '@tailwindcss/vite';
33
import sitemap from '@astrojs/sitemap';
44

55
// https://astro.build/config
66
export default defineConfig({
77
site: 'https://sourcectl.dev/',
88
trailingSlash: 'ignore',
99

10-
integrations: [tailwind(), sitemap()],
10+
integrations: [sitemap()],
11+
vite: {
12+
plugins: [tailwindcss()],
13+
},
1114
});

0 commit comments

Comments
 (0)