Skip to content

Commit 79c8cd8

Browse files
committed
Add tailwindcss/alias
1 parent bbbb406 commit 79c8cd8

File tree

5 files changed

+1290
-53
lines changed

5 files changed

+1290
-53
lines changed

astro.config.mjs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,24 @@
22
import { defineConfig } from 'astro/config';
33
import react from '@astrojs/react';
44
import mdx from '@astrojs/mdx';
5+
import tailwind from '@astrojs/tailwind';
6+
import path from 'path';
7+
import { fileURLToPath } from 'url';
8+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
59

610
// https://astro.build/config
711
export default defineConfig({
8-
integrations: [react(), mdx()],
9-
});
12+
integrations: [tailwind(), react(), mdx()],
13+
vite: {
14+
server: {
15+
watch: {
16+
usePolling: true,
17+
}
18+
},
19+
resolve: {
20+
alias: {
21+
'@': path.resolve(__dirname, './src'),
22+
},
23+
},
24+
},
25+
});

0 commit comments

Comments
 (0)