Setup FSD
This commit is contained in:
@@ -1,9 +1,22 @@
|
||||
// @ts-check
|
||||
import { defineConfig } from 'astro/config';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
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()]
|
||||
}
|
||||
});
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
resolve: {
|
||||
alias,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user