Files
blog-frontend/astro.config.mjs
Nikita Pozdniakov 07c90564de Setup FSD
2026-04-29 15:09:09 +03:00

23 lines
684 B
JavaScript

// @ts-check
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "astro/config";
const alias = {
"@app": new URL("./src/app", import.meta.url).pathname,
"@pageModules": new URL("./src/pageModules", import.meta.url).pathname,
"@widgets": new URL("./src/widgets", import.meta.url).pathname,
"@features": new URL("./src/features", import.meta.url).pathname,
"@entities": new URL("./src/entities", import.meta.url).pathname,
"@shared": new URL("./src/shared", import.meta.url).pathname,
"@mocks": new URL("./src/__mocks__", import.meta.url).pathname,
};
export default defineConfig({
vite: {
plugins: [tailwindcss()],
resolve: {
alias,
},
},
});