Commit 0830c88

HPCesia <me@hpcesia.com>
2026-01-31 05:26:18
Add import aliases
1 parent fb632a9
Changed files (2)
src/pages/index.astro
@@ -1,5 +1,5 @@
 ---
-import "../styles/global.css";
+import "@/styles/global.css";
 ---
 
 <html lang="en">
tsconfig.json
@@ -1,5 +1,11 @@
 {
   "extends": "astro/tsconfigs/strict",
   "include": [".astro/types.d.ts", "**/*"],
-  "exclude": ["dist"]
+  "exclude": ["dist"],
+  "compilerOptions": {
+    "baseUrl": ".",
+    "paths": {
+      "@/*": ["./src/*"],
+    },
+  },
 }