Skip to content

Commit 66076cd

Browse files
committed
fix: tailwindcss work with new astro now
1 parent 4fe5aa8 commit 66076cd

File tree

6 files changed

+511
-780
lines changed

6 files changed

+511
-780
lines changed

astro.config.mjs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import react from '@astrojs/react';
22
import sitemap from '@astrojs/sitemap';
33
import { defineConfig } from 'astro/config';
44
import { pdfOutPathRelative } from '/src/lib/pdf-details.js';
5-
import tailwind from '@astrojs/tailwind';
5+
6+
import tailwindcss from '@tailwindcss/vite';
67

78
/*
89
We are doing some URL mumbo jumbo here to tell Astro what the URL of your website will be.
@@ -30,8 +31,14 @@ if (isBuild) {
3031
export default defineConfig({
3132
server: { port: SERVER_PORT },
3233
site: BASE_URL,
34+
3335
redirects: {
3436
'/cv/pdf': pdfOutPathRelative,
3537
},
36-
integrations: [react(), sitemap(), tailwind()],
38+
39+
integrations: [react(), sitemap()],
40+
41+
vite: {
42+
plugins: [tailwindcss()],
43+
},
3744
});

0 commit comments

Comments
 (0)