24 lines
509 B
JavaScript
24 lines
509 B
JavaScript
// @ts-check
|
|
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { defineConfig } from 'astro/config';
|
|
import { fileURLToPath } from 'url';
|
|
import path from 'path';
|
|
import react from '@astrojs/react';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
},
|
|
|
|
integrations: [react()],
|
|
});
|