Skip to content

Commit

Permalink
added new path aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
gnimnix committed Mar 16, 2024
1 parent d4887bd commit ab7418a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
"css/*": ["./src/css/*"],
"img/*": ["./src/img/*"]
"css/*": ["./src/assets/css/*"],
"img/*": ["./src/assets/img/*"],
"components/*": ["./src/components/*"],
"routes/*": ["./src/routes/*"]
}
},
"include": ["src"],
Expand Down
4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export default defineConfig({
{ find: "@", replacement: "/src" },
{ find: "assets", replacement: "/src/assets" },
{ find: "css", replacement: "/src/assets/css" },
{ find: "img", replacement: "/src/assets/img" }
{ find: "img", replacement: "/src/assets/img" },
{ find: "components", replacement: "/src/components" },
{ find: "routes", replacement: "/src/routes" }
]
}
})

0 comments on commit ab7418a

Please sign in to comment.